News for hackers. Stuff that matters.
Re:Confirmed: Windows Azure downtime caused by leap-day bug by nandemo on Thursday March 01, 2012 @10:24AM (#3652410)
I don't think we're actually disagreeing, but I don't think you have addressed my point. I'm assuming your software can handle 28 or 30 or 31-day months, after all it has worked for the last few years. So you must already have a library that provides you with the adequate abstractions. Then I'm asking you why your software breaks when there are 29 days.

So I don't see how libc or other low-level libraries are relevant here. My assumption implies that you're using some library with support for dates. I'm not even assuming that you're Microsoft, though that helps.

(Note that this has little to do with leap seconds. There are astronomers that might care about the details, but for most of us it's enough to think of a leap second as a "long second".)

Re:Confirmed: Windows Azure downtime caused by leap-day bug by lysium on Thursday March 01, 2012 @03:30PM (#3653877)
I don't think we disagree, either. Maybe I can clarify how I addressed your point.

    So you must already have a library that provides you with the adequate abstractions.
Given that it failed on Feb 29, either the library is weak, used wrongly, or no such library had been in use. Instead, the code may have assumed that every February has 28 days or it calculated the leap year wrongly. In either case, I can imagine that code that assumes that Feburary has 28 days may go havoc on the 29th. For example, before midnight you might want to schedule some important task two hours from now, do calculations based on the number of seconds in two hours and calculate the task to happen on March 1st instead of February 29th.

I think the issue arises because even though time is such an important (and difficult to handle) data point, there is hardly any language support or the libraries are weak.