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" <[EMAIL PROTECTED]> 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


Reply via email to