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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 because you could have solved this easily by googling. – Martin von Wittich Sep 17 '13 at 20:44

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
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
$ strftime -r '%b %d %Y' 'february 15 2013'

With ksh93:

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

With GNU date:

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

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

share|improve this answer

Your Answer


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.