Mr. Zajkowski-

The dates that come our of matchup are not tai64n formatted.

However, I was provided with following perl script by another list member
which appears to do the job:

#!/usr/bin/perl -n
#
chop;
s/^[^0-9][^:]+://;
($time,$therest) = split(/\s+/,$_,2);
print scalar localtime($time)," $therest\n";

Thanks.

James


-----Original Message-----
From: Jim Zajkowski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 07, 2000 11:06 PM
To: James Morgenstein
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Converting dates from seconds since epoch to readable dates



tai64nlocal, it's in the daemontools package from DJB.


On Tue, 7 Nov 2000, James Morgenstein wrote:

> All-
>
> I am attempting to write a script which examines the qmail logs files for
> statistics on ezmlm mail lists.
>
> In order to make sense of the results I need a script or command which
will
> turn the dates that come out of qmailanalog's matchup program into human
> readable form.
>
> Does anyone have a script or know the command to turn a date such as
> 973212991.884939500 to a real date that you and I can easily understand?
>
> Thanks.
>
> James
>
>

--
Jim Zajkowski
System Administrator
ITCS Contract Services



Reply via email to