Page 1 of 1

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

Posted: 24 Nov 2009 11:40
by Cavall
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!

Posted: 24 Nov 2009 21:39
by ghostmachine4
get GNU date from coreutils http://gnuwin32.sourceforge.net/packages.html
then on command line

Code: Select all

date +%s