News for hackers. Stuff that matters.
Re:What every programmer should know about time by thristian on Monday July 04, 2011 @02:54AM (#2725652)
Because people working with timestamps like to write code that says things like:

    // schedule another run for tomorrow
    schedule_event(now() + 86400)
...which doesn't actually work when leap-seconds are involved (things start to drift by a second). If you specify that leap seconds get replayed, it works.
Re:What every programmer should know about time by shaggyfrog on Monday July 04, 2011 @03:17AM (#2725682)
An article previously linked on Hacker News goes into leap seconds in much greater detail and is a good read:

http://cacm.acm.org/magazines/2011/5/107699-the-one-second-w...

Re:What every programmer should know about time by bluedanieru on Monday July 04, 2011 @03:25AM (#2725700)
Strange then that we'd scold a developer for assuming the number of hours in a day, or the timezone, or whatever, but not for using Unix time as an absolute time, when in fact it is not an absolute time at all and even caters to the same error in thought.