Re: [squid-users] time format in access.log

From: Justin Hennessy <jhennessy@dont-contact.us>
Date: Fri, 27 Jun 2003 15:27:45 +0930

Mueller,

If you have existing logs that you want to convert then use this script:

#
# Usage: cat access.log | ./dateconv.pl | less
#
while (<>) {
if (/^(\d+)(\..+)$/) {
$time=localtime($1);
print substr($time,0,11).substr($time,20,4).substr($time,10,9)."$2\n";
}
}

Justin

>>> "Mueller, Thomas" <Thomas.Mueller@cexp.de> 24/06/2003 6:03:27 pm >>>
Dear list,

is it possible to change the time format from "1056382600.241" for example
to
"normal" time and date format?

Thanks in advance
Tom
Received on Thu Jun 26 2003 - 23:58:29 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:17:39 MST