RE: [SQU] The access.log

From: Joe Kattner <joe.kattner@dont-contact.us>
Date: Mon, 15 Jan 2001 15:04:08 -0500

From the commandline:
 
# perl -e 'print scalar localtime(979212583),"\n"'
Thu Jan 11 06:29:43 2001
 
The epoch on most *nix systems is 00:00:00 1/1/1970 (GMT).
 
--Joe

-----Original Message-----
From: Martin Mielke [mailto:martinm@people-com.com]
Sent: Monday, January 15, 2001 1:48 PM
To: 'Sergio Domenech'; squid-users@ircache.net
Subject: RE: [SQU] The access.log

Hello,
 
UNIX-time begins somewhere back in 1970 (Juny, 1st) and is count in seconds
 
Try this small perl script to convert to human-format :)
Watch out for your Perl path!
 

---
#! /usr/bin/perl -p
#
# convert UNIX time to a more human-readable format
#
# Martin Mielke - martin@people-com.com <mailto:martin@people-com.com> 
#
 
s/^\d+\.\d+/localtime $&/e;  
---
 
 
HTH,
 
Martin
 
-----Original Message-----
From: Sergio Domenech [mailto:sergiodomenech@yahoo.com]
Sent: Monday, January 15, 2001 6:32 PM
To: squid-users@ircache.net
Subject: [SQU] The access.log
Hi everyone
 I have a small problem that maybe someone can help me with:
I need to know how to translate the first field on the access.log from squid
to something understandable
how you know that 979203949.269 means " 09 Jan 01
04:00"  what is the algorithm
Thanks 
sergiodomenech@yahoo.com
--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Mon Jan 15 2001 - 13:18:32 MST

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