You can use a simple Perl command to convert the Unix timestamps into
local time. For example:
perl -pe 's/^\d+\.\d+/localtime($&)/e;' access.log
Regards
Xavier.
Dave escribió:
> Hello,
> I'm trying to parse the squid access.log output. There's a portion
> of the output i don't get, it looks like a time stamp: 1134413541.150.
> If this is a time stamp i need to convert it in to a human readable
> form such as date, time in time zone, and so forth. Also, in the
> access denied message template file i'd like to change it's reference
> from gmt to local time zone.
> Some urgency with the first request.
> Thanks.
> Dave.
Received on Mon Dec 12 2005 - 14:05:34 MST
This archive was generated by hypermail pre-2.1.9 : Sat Dec 31 2005 - 12:00:02 MST