Re:June 30th 2012 will be 1 second longer: 23:59:60
by arohner on Thursday June 14, 2012 @06:43PM
(#4113925)
I've found or read about bugs in nearly every stdlib time library I've ever worked in, except Joda time[1].
If you rolled your own, you should worry more, but you should still think about it even if you didn't roll your own.
[1] Joda is awesome, and by far better than any other time lib out there, but even they have bugs they're fixing in JSR310 (http://jcp.org/en/jsr/detail?id=310)
Although 1341100800 refers to two seconds, when converting to UTC it should always become 00:00:00. Your implementation may not be conforming to the standard, though. Make sure to test.
(I'm sure if you rolled your own time code, you already know about this stuff. Probably other folks are curious though :)
[0] I think this is the second we're talking about, not positive though.