RE: [squid-users] Squid time to people time

From: Lightfoot.Michael <Lightfoot.Michael@dont-contact.us>
Date: Thu, 21 Nov 2002 15:13:27 +1100

> -----Original Message-----
> From: Colin Campbell [mailto:sgcccdc@citec.qld.gov.au]
> Sent: Thursday, 21 November 2002 1:08 PM
> To: squid-users@squid-cache.org
> Subject: Re: [squid-users] Squid time to people time
>
>
> Hi,
>
> This is a FAQ.
>
And it is hidden away in section 6 of the FAQ. :-)

> On my box I do
>
> perl -pe 's/(\d+\.\d+)/localtime $1/e' /opt/squid/logs/access.log
>
That's similar to what is in the FAQ. If you want to simply check the
time of a single entry, try the following script:
root:/ # cat /usr/local/bin/timeconv
#!/usr/bin/perl
# Conversion from Unix time string to local time
print scalar localtime(@ARGV[0]),"\n"

Usage is timeconv <first field of line in access log>
------------------------------------------------------------------------
NOTICE: This e-mail message and attachments may contain confidential
information. If you are not the intended recipient you should not use or
disclose any information in the message or attachments. If received in
error, please notify the sender by return email immediately. Comcare
does not waive any confidentiality or privilege.

Comcare's Canberra and Melbourne offices have moved to new premises.

We hope this notice makes it easier for you to update your records.
 
New street addresses:
 
Canberra office
Level 1
14 Moore street
CANBERRA CITY ACT 2601

Melbourne Office
Level 2
121 William Street
MELBOURNE VIC 3001
Claims Fax Number 03 9620 4721

Please call Comcare on 1300 366 979 if you have any queries.
Received on Thu Nov 21 2002 - 09:28:32 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:11:21 MST