Hacker News new | past | comments | ask | show | jobs | submit login

What do we do about date calculations that cross an epoch wrap?



Signed 64 bit seconds since epoch is enough.


Is the whole Internet on 64-bit time_t now? Will they all be by 2038? I'm guessing we won't know that answer until 2037...


x32 ABI, which got merged in newly released Linux 3.4, defines time_t to be 64-bit. I am starting to feel hopeful that we will be better prepared.


That's cool for Linux, going forward. Now we just have to take care of all the old mainframes and legacy system that will never get their O/S updated...


We won't know until 1901 ...

   >>> datetime.datetime.utcfromtimestamp(-2**31)
   datetime.datetime(1901, 12, 13, 20, 45, 52)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: