- Time formatting and storage bugs
In
computer science , time formatting and storage bugs are a class ofsoftware bug s which may cause time and date calculation or display to be improperly handled. These are most commonly manifestations ofarithmetic overflow , but can also be the result of other issues. The most well-known consequence of bugs of this type is theY2K problem , but many other milestone dates or times exist that have caused or will cause problems depending on various programming deficiencies.GPS date rollover
In the last few months before the year 2000, two other date-related milestones occurred that received less publicity than the then-impending Y2K problem.
The first problem was related to
GPS devices: GPS dates are expressed as a week number and a day-of-week number, with the week number transmitted as a ten-bit value. This means that every 1,024 weeks (about 19.6 years) afterJanuary 6 ,1980 (the GPS epoch), the date resets again to that date; this happened for the first time onAugust 21 ,1999 .cite news
author = Janis L. Gogan
title = Applications To The Nines
url = http://www.informationweek.com/747/47uwjg.htm
work =InformationWeek
date = August 9, 1999
accessdate = 2008-01-21] To address this concern, modernized GPS navigation messages use a 13-bit field, which only repeats every 8,192 weeks (157 years), and will not return to zero until near the year 2137.9/9/99
The second pre-Y2K milestone occurred in the following month. In many programs or data sets, "9/9/99" was used as a code value to indicate either an unresolved date or as a terminator to indicate no further data was in the set. This raised issues when the actual date this represents,
September 9 ,1999 , actually arrived.Two-digit year representations
Followon problems caused by certain temporary fixes to the Y2K problem will crop up at various points in the 21st century. Some programs were made Y2K-compliant by continuing to use two digit years, but picking an arbitrary year prior to which those years are interpreted as 20"xx", and after which are interpreted as 19"xx".
For example, a program may have been changed so that it treats two-digit year values 00-68 as referring to 2000 to 2068, and values 69-99 as referring to 1969 through 1999. [ [http://www.opengroup.org/onlinepubs/000095399/utilities/date.html date - write the date and time] ,
The Open Group Base Specifications Issue 6. IEEE Std 1003.1, 2004 Edition] Such a program will not be able to correctly deal with years beyond 2068.For applications wanting to calculate the birth year (or other passed year), such an algorithm has long been used to overcome the
Year 1900 problem , but it has failed to recognise people over 100 years old.Year 2011 in Taiwan
Taiwan (known formally as theRepublic of China ) officially uses theMinguo calendar , which considers theGregorian year 1912 to be its year 1. Thus, the Gregorian year2011 will be the ROC year 100, its first 3-digit year. [ [http://pinyin.info/news/2006/taiwans-y1c-problem/ Pinyin news » Taiwan’s Y1C problem ] ]Year 2038
The original implementation of the
Unix operating system stored system time as a 32-bit signed integer representing the number of seconds past the Unix epoch: midnight UTC,January 1 ,1970 . This value will roll over onJanuary 19 ,2038 . This problem has been addressed in most modern Unix andUnix-like operating systems by storing system time as a 64-bit signed integer, although individual applications, protocols, and file formats will still need to be changed as well.Years 2127 and 2255
The SPD EEPROM on modern computer memory modules contains a single-byte 2000-based year-of-manufacture code at offset 0x5D [ [http://www.jedec.org/download/search/4_01_02_04R13.PDF] ] [ [http://www.jedec.org/download/search/4_01_02_10R14.pdf] ] , which, depending on signed/unsigned interpretation, will wraparound on Dec 31 2127 or Dec 31 2255. Due to the 18-24 month generational cycle in computer technology this should not be a problem.
Year 10,000
The year 10,000 will be the first Gregorian year with five digits. Although many people at first consider this year to be so far distant that a problem of this type will never actually occur, certain classes of calculations in disciplines such as
astronomy andphysics already need to work with years of this magnitude and greater.Years 32,768 and 65,536
Programs that process years as 16-bit values may encounter problems dealing with either the year 32,768 or 65,536, depending on whether the value is treated as a signed or unsigned integer.
In the case of the year 32,768 problem, years after 32,767 may be interpreted as negative numbers, beginning with -32,768. [ [http://delphi.about.com/od/humorandfun/a/funstopdelphi.htm Top 10 Fun Reasons why you Should Stop Using Delphi, now! ] ] The year 65,536 problem is more likely to manifest itself by representing the year 65,537 as the year 1. [http://libsnap.dom.edu/ClasPlus/ADDONS/Y2K.TXT]
"Problems" that aren't problems
Certain problematic years occur well past the predicted
heat death of the universe , or the Big freeze, or similar predictedultimate fate of the universe , so are mainly referenced as jokes, or to indicate that a related problem truly is solved for any reasonable or unreasonable definition of "solved."* The year 292,277,026,596 problem: this is the year that 64-bit
Unix time would reset to zero. [ [http://www.deepsky.com/~merovech/2038.html Project 2038 FAQ ] ]* The year 170,141,183,460,469,231,731,687,303,715,884,105,727 problem: this is the year that 128-bit Unix time would reset to zero. [ [http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00465.html Jan Beulich - enable maximum integer type to be 128 bits ] ]
See also
*
Software bug
*Unusual software bug References
Wikimedia Foundation. 2010.