Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to edit a URL on google locatiion history. I need to know how to enter february 15 2013 in unix time format (the 10 digit format) I'm not a computer whiz so if anyone can just give me the answer and not try to teach me how right now I'd really appreciate that. If you have any suggestions on any websites I can go to and learn how later on or any suggestions on android apps that convert regular time into unix time please tell me!

share|improve this question
1  
-1 because you could have solved this easily by googling. –  Martin von Wittich Sep 17 '13 at 20:44

3 Answers 3

There are a lot of online tools that can do that : a simple Google search for 'convert to unix time' yields a lot of results, epochconverter.com being just one. If you wanna do it programatically, I recommend php's mktime() .

share|improve this answer

If you want to learn how a Unix timestamp is calculated: http://en.wikipedia.org/wiki/Unix_time

share|improve this answer
1  
That assumes GNU date. –  Stéphane Chazelas Sep 17 '13 at 21:30

With zsh:

$ zmodload zsh/datetime
$ strftime -r %Y-%m-%d 2013-02-15
1360886400
$ strftime -r '%b %d %Y' 'february 15 2013'
1360886400

With ksh93:

$ printf '%(%s)T\n' '2013-02-15 00:00:00'
1360886400
$ printf '%(%s)T\n' 'february 15 2013 00:00'
1360886400

With GNU date:

$ date -d 'february 15 2013' +%s
1360886400

(Note that you may get a different result in your timezone).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.