SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Convert "English Time" back to "seconds past
Author Message
Post Convert "English Time" back to "seconds past 
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.

???

Paul

-----Original Message-----
From: veritas-bu-admin < at > mailman.eng.auburn.edu
[mailto:veritas-bu-admin < at > mailman.eng.auburn.edu] On Behalf Of Ed Wilts
Sent: February 2, 2005 9:10 AM
To: Marianne van den Berg
Cc: NBUList (E-mail)
Subject: Re: [Veritas-bu] Convert "English Time" back to
"seconds past the epoch"


On Wed, Feb 02, 2005 at 01:15:39PM +0200, Marianne van den Berg wrote:
I desperately need help - I need to use the following output to
populate and assign media manually to volDB:

000408 HCART NONE - - - ---
- 109 11/11/2004 00:10 --- --- Scratch

I can do a 'vmadd' based on the above output, but I also need to
assign the media, using fields 12 and 13 (e.g. 01/24/2005
19:06). The
problem is that "vmquery -assignbyid" needs 'assigntime' in 10-digit
format. How can I convert the date and time? (Testing on Solaris,
need to do this on Linux.)

On Linux (both RHEL 3 and Fedora Core 3):
$ date -d '11/11/2004 00:10' +%s
1100153400

The %s is a GNU extension so it might not be there on Solaris.

--
Ed Wilts, Mounds View, MN, USA
mailto:ewilts < at > ewilts.org
_______________________________________________



Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB