Re: Date and Hour

From: Aaron Baugher <abaugher@dont-contact.us>
Date: Fri, 23 Apr 1999 16:07:20 GMT

From: "de la Barra, Isabel (LANINFO)" <idelabar@lanchile.cl>

> I need know the date and hours of the a record in the log of squid,
> but it show me a number 924879043.100.

That's the number of seconds since the Unix epoch. If you have Perl
5, you can convert that to a typical date string (dropping the
fraction of a second):

# perl -e 'use Time::localtime; print ctime(924879043)'
Fri Apr 23 14:50:43 1999

Aaron

-- 
Aaron Baugher - abaugher@rnet.com - Quincy, IL, USA
Extreme Systems Consulting - http://haruchai.rnet.com/esc/
CGI, Perl, Java, and Linux/Unix Administration
Received on Fri Apr 23 1999 - 10:08:03 MDT

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