On Thu, Oct 03, 2002 at 04:23:19PM +0200, Jasper Wammes wrote:
> Hi there,

Hi,

> I am analizing a Squid proxy log file. The times is like this:
> 1033638320.833
> Hoe can i convert that to a normal time?
> 
> Thanks for your time.

This should do it, to a certain extent:

my $number_time = 1033638320.833;
my $pretty_time = localtime($number_time);
# or
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($number_time);

I'm not sure how to get the miliseconds, though. (That's the cue for someone who
knows more to come in and make me look stupid ;)

-- 
Michael

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to