Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In what date format is 1339698600000 = 15 June 2012?

I am using bootstrap-datepicker and get a value of 1339698600000 for the selected date of 15th June 2012.

What dateformat is this? How do I convert it to human readable format?

Is there any resource where I can find many more formats?

like image 560
theTuxRacer Avatar asked Dec 05 '25 13:12

theTuxRacer


2 Answers

That is the number of milliseconds since January 1, 1970 (POSIX epoch). You can divide it by 1000 to get the number of seconds since epoch which is a standard way to represent time.

like image 106
K-ballo Avatar answered Dec 09 '25 01:12

K-ballo


It's the number of milliseconds since 1/1/1970. To convert to human readable, Add that many milliseconds to a 1/1/1970 date object.

like image 31
recursive Avatar answered Dec 09 '25 00:12

recursive



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!