Re: Time format in log files

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 19 Aug 1998 02:49:33 +0200

Joerg Oertel wrote:
>
> Can someone explain the log file timestamp format ( like 903459502.172) explain
> to me? How does it translate to Aug 18 18:40 (or such)?

It is the time reported by gettimeofday(), with tv_usec divided by 1000.

A oneliner to tranlate it to plain text in local timezone is:

perl -e 'print scalar localtime 903459502, " + 172 msec\n';

(replace localtime by gmtime if UTC (GMT) times is wanted)

---
Henrik Nordström
Sparetime Squid Hacker
Received on Tue Aug 18 1998 - 18:11:50 MDT

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