Home > Zune Error > Zune Error Leap Year

Zune Error Leap Year

BTW, if one is doing four-year chunks, how does the performance of integer divide compare with that of repeated subtracts? A task this simple shouldn't need so many ifs and elses. Affiliate link policy. Here's my best effort so far: year = ORIGINYEAR - 1; while (days > 0) { year += 1; if (IsLeapYear(year)) days -= 366; else days -= 365; } I suppose http://thetechevent.com/zune-error/zune-leap-year-bug.html

Zune The Zune Marketplace Will Be Dead Within 9Days Microsoft Puts The Zune Down The MemoryHole Zune HD Gets A Handful Of NewApps Browse more... why all the fuss? That said, and while it is unrealistic anyone will be using a Zune 100 years in the future, I think it is better for IsLeapYear to be written this way for Microsoft's failure was shipping code written by someone else without doing complete code reviews.

Anonymous Fool says: January 13, 2009 at 5:18 am In which way would modulo functions help with leap years? Consider what happens when the initial value of days is 366. Microsoft expects that the bug will resolve itself by Jan. 1, when the device's internal clock will reset itself."By [Thursday] you should allow the battery to fully run out of power itsnotabigtruck View Public Profile Send a private message to itsnotabigtruck Find More Posts by itsnotabigtruck 12-31-2008, 03:39 PM #7 LancerRevolution Experienced Member Join Date: Jun 2007 Location: El Paso,

original_days = days + sum_{y : ORIGINYEAR <= y < year} Max Hailperin says: 13 January 2009 at 9:00 pm @dagor17: The text you quoted from Barak Pearlmutter's comment wasn't from Cloud adoption keeps moving ahead, survey says Inside a hyperscale data center (how different is it?) MySQL face-off: Amazon outscales Google More Insider Sign Out Search for Suggestions for you Insider Type[edit] There have been several occurrences of the leap year bug: In 2012, Microsoft Azure was taken offline by the leap year bug. Archived from the original on August 30, 2009.

Retrieved 2011-07-27. ^ Geere, Duncan. "BREAKING: Zunes worldwide hit by mystery crash: Tech Digest". itsnotabigtruck View Public Profile Send a private message to itsnotabigtruck Find More Posts by itsnotabigtruck 12-31-2008, 08:07 PM #20 programphases Squirt Join Date: Dec 2008 Posts: 10 Quote: Originally First, even seemingly simple computations can be hard to get right. It's very annoying to follow a link from another website to an article such as this one and be left wondering who wrote it.

Follow We’re OnPinterest See what's inspiring us. The conversion logic is identical -- just the code for getting the raw number of days is different -- and yet the conversion code is duplicated, or rather, is nearly duplicated. Follow Follow UsOn Youtube Don't miss out on WIRED's latest videos. Making it error-free is too much to hope for. " This conclusion is too pessimistic and not at all true for this kind of simple programming errors.

Submit Thank You Invalid Email Follow UsOn Twitter 7 hours Meet the young geniuses behind Obama's favorite science projects: wrd.cm/2f2OQtF Follow Follow UsOn Facebook Don't miss our latest news, features and Your cache administrator is webmaster. However, the final statement is unphased by this slight error. When I first looked into the matter, I guessed that counting began with day 0 because the Zune routine correctly returns year 1980 for day values from 0 through 365.

OK so far. Check This Out Carl Witty says: January 13, 2009 at 12:04 pm Check out the comment ("Reply 2 of 3") from Max Hailperin at http://bit-player.org/2009/the-zune-bug#comment-1890, where he points out that the source file containing Here, a problem computing dates caused the entire system to be unusable for a day. A copy of the C source module (which bears copyright notices from both Microsoft and Freescale Semiconductor) was posted here.

Good point. Skip To: Start of Article. TechHive Newsletter Get our Best of TechHive Newsletter Sign up to receive the top connected-home and home-entertainment news and reviews of the week.

© Copyright 2017 thetechevent.com. All rights reserved.