Many Zune Owners Lost their Music Player on Dec 31
Leap years are notorious for introducing bugs. Many people think that its just a simple divide by 4, so 2008, 2004, 2000 etc but there's a slight complexity to account for the fact that leap years aren't exactly 366 days long. Every century (1800, 1900) etc is not a leap year unless it's dividable by 400. So 1900 wasn't a leap year but 2000 was.
In fact the whole date/time area can be a minefield as anyone who has used php with MySQL will testify. My advice- find a useful library and stick with it. When it comes to dealing with dates, differences between them adding dates it's fairly ok but add in time zones and then the effects of summer time and it's not as simple!


No comments yet. Leave a Comment