batch file convert standard date to epoch date/time??

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Cavall
Posts: 1
Joined: 24 Nov 2009 11:31

batch file convert standard date to epoch date/time??

#1 Post by Cavall » 24 Nov 2009 11:40

Hi... I really need help in figuring out how to convert a standard date/time to an epoch date/time format.

I need to send an http request using wget and one of the required parameters is a date/time in epoch format (seconds since 1/1/1970).

Anyone know how to do this?!?!

I cant find anything ANYWHERE!

I really need this done quickly if at all possible, so I really appreciate the help!

ghostmachine4
Posts: 319
Joined: 12 May 2006 01:13

#2 Post by ghostmachine4 » 24 Nov 2009 21:39

get GNU date from coreutils http://gnuwin32.sourceforge.net/packages.html
then on command line

Code: Select all

date +%s

Post Reply