News for hackers. Stuff that matters.
Re:What every programmer should know about time by sgerrand on Sunday July 03, 2011 @10:21PM (#2725152)
As per gakman's comment in the Google+ crosspost[1], be wary of the Unix millenium bug[2] if you use integers for timestamp storage.

[1] https://plus.google.com/106356964679457436995/posts/Hzq2P7V6... [2] http://en.wikipedia.org/wiki/Year_2038_problem

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.
Re:What every programmer should know about time by caf on Monday July 04, 2011 @01:01AM (#2725420)
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".