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