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 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