Quantcast
Channel: Conversion from UNIX time to timestamp starting in January 1, 2000 - Stack Overflow
Browsing latest articles
Browse All 6 View Live

Answer by Yuchao Jiang for Conversion from UNIX time to timestamp starting in...

Unix epoch: 1970-1-1, 00:00:00 UTCJ2000 epoch: 2000-1-1, 12:00:00 UTCThe time gap is: 946684800 in secondsThe pitfall is that python will use local timezone for conversion from datetime to timestamp....

View Article



Answer by ChrisFreeman for Conversion from UNIX time to timestamp starting in...

The differences in the two times is indeed 30 years:>>> import datetime>>> d1 = datetime.datetime.fromtimestamp(1456979510)>>> d1.ctime()'Wed Mar 2 20:31:50 2016'>>>...

View Article

Answer by JRodDynamite for Conversion from UNIX time to timestamp starting in...

The time 1 January 1970 00:00:00 is considered the UNIX epoch. So, if you want to convert from UNIX time to a timestamp having an epoch of January 1, 2000 (Let's say, 2000 epoch) the simplest way would...

View Article

Answer by Matt Johnson-Pint for Conversion from UNIX time to timestamp...

Well, there are 946684800 seconds between 2000-01-01T00:00:00Z and 1970-01-01T00:00:00Z. So, you can just set a constant for 946684800 and add or subtract from your Unix timestamps.The variation you...

View Article

Answer by S Raghav for Conversion from UNIX time to timestamp starting in...

EDIT: The OP added details specifying that the time starts at midnight and hence it is absolute time different from J2000 which starts at noon. But since the title states "timestamp starting in January...

View Article


Conversion from UNIX time to timestamp starting in January 1, 2000

I am trying to interact with an API that uses a timestamp that starts at a different time than UNIX epoch. It appears to start counting on 2000-01-01, but I'm not sure exactly how to do the conversion...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images