Re:What every programmer should know about time
by sneak on Sunday July 03, 2011 @11:06PM
(#2725231)
"But there's no way my code will be running unchanged in 2038!"
Re:What every programmer should know about time
by yoyar on Sunday July 03, 2011 @11:29PM
(#2725279)
I wonder about storing the timestamp in a varchar field of sufficient size to avoid all of these headaches? Although I guess 64 bit will suffice for a very long time.
As a point of reference, the universe is estimated at less than 2^59 seconds old.
Re:What every programmer should know about time
by andrewcooke on Sunday July 03, 2011 @11:42PM
(#2725293)
man 3p time suggests using time_t to "ease the eventual fix".
[1] https://plus.google.com/106356964679457436995/posts/Hzq2P7V6... [2] http://en.wikipedia.org/wiki/Year_2038_problem