Click to See Complete Forum and Search --> : unix timestamp (squid)


eduac
08-05-2003, 02:15 PM
Guys,


i dont understand this report of squid, how i can convert the follow unix timestamp (1060075600) to datetime?

1060075600.654 56 192.168.66.142 TCP_IMS_HIT/304 276 GET http://www.jt.estadao.com.br/jt/templates/barra/g
lobal.css - NONE/- text/css

Because i convert using the date function of php, and i think this is wrong value (05/08/2003 - 02:26:40)...the hour its a little strange.

dalecosp
08-06-2003, 12:10 AM
Try using getdate() ?

Truti
08-14-2003, 06:10 PM
Funny.. i had same kind of prob yeaterday.... no one can explain it better than the php manual it self:

http://www.php.net/date

eduac
08-15-2003, 08:17 AM
i found the answer with perl function -

perl -e '$time=localtime("string_time");print "$time\n";'