January 2009
30 posts
The code that allegedly broke the Zune
jstn:
rtc.c
while (days > 365) { if (IsLeapYear(year)) { if (days > 366) { days -= 366; year += 1; } } else { days -= 365; year += 1; } }