Veritas-bu

[Veritas-bu] Convert "English Time" back to "seconds past the epoch"

2005-02-02 09:39:46
Subject: [Veritas-bu] Convert "English Time" back to "seconds past the epoch"
From: ewilts AT ewilts DOT org (Ed Wilts)
Date: Wed, 2 Feb 2005 08:39:46 -0600
On Wed, Feb 02, 2005 at 09:17:43AM -0500, Paul Keating wrote:
> On the same token....I'm trying to decipher some infor from some squid
> proxy logs which are logged in epoch, and I need to convert them nack to
> standard local time.
> 
> I can find many ways to convert standard to epoch, using perl or
> whatever, but can't seem to be able to find out how to convert epoch to
> local time.

[ewilts@pe400 ~]$ date -d '11/11/2004 00:10' +%s
1100153400
[ewilts@pe400 ~]$ date -d '1970-01-01 1100153400 seconds'
Thu Nov 11 06:10:00 CST 2004

-- 
Ed Wilts, Mounds View, MN, USA
mailto:ewilts AT ewilts DOT org