Main Page

encyclopedia.codeboy.net

 

Year 2000 problem

The Year 2000 Problem (also known as the Y2K problem and the millennium bug) was a flaw in computer program design that caused some\ndate-related processing to operate incorrectly for dates and times on and after January 1, 2000. It turned into a major fear that critical industries (electricity, financial, etc.) and government functions would stop working at 12:00 AM, January 1, 2000 and at other critical dates which were billed as "event horizons." This fear was fueled by huge amounts of press coverage and speculation, as well as copious official corporate and government reports. In the end, few Y2K errors were encountered on Jan 1, 2000, although the preparation for it had a significant effect on the computer industry.

Table of contents
1 Background
2 The programming problem
3 Public reaction to the problem
4 What actually happened
5 Items of interest
6 Quote
7 References
8 External links

Background

Y2K (or Y2k) was the common slang for the year 2000 problem. (The abbreviation combines the letter Y for "year", and K for the Greek prefix kilo meaning 1000; hence, 2K means 2000.) It also went by millennium bug (though there is a popular debate on whether or not the year 2000 was actually the start of the new millennium). It was thought computer programs could stop working or produce erroneous results because they stored years with only two digits and that the year 2000 would be represented by '00' and would be interpreted by software as the year 1900. This would cause date comparisons to produce incorrect results. It was also thought that embedded systems, making use of similar date logic, might fail and cause utilities and other crucial infrastructure to fail. In the years prior to 2000, some corporations and governments, when they did testing to determine the extent of the potential impact, reported that some of their critical systems really would need significant repairs or risk serious breakdowns. Throughout 1997 and 1998, there were news reports about major corporations and industries that had made uncertain estimates as to their preparedness. The vagueness of these reports, and the apparent uncertainty regarding what sort of breakdowns were possible--and the fact that literally hundreds of billions of dollars were reportedly spent in remediation efforts--were a major part of the reason for the public fear. Special committees were set up by governments to monitor remedial work and contingency planning, particularly by crucial infrastructure such a telecommunications, utilities and the like, to ensure that the most critical services had fixed their own problems and were prepared for problems with others. By early- to mid-1999, when the same corporations, industry organizations, and governments were claiming to be largely prepared, the public relations damage had been done. It was only the safe passing of the main "event horizon" itself, January 1, 2000, that fully quelled public fears. The preparations for the possible crisis did have an unexpected benefit on August 14, 2003, during the 2003 U.S.-Canada blackout. The previous activities had led to the installation of new electrical generation equipment and systems which allowed for a relatively rapid restoration of power in some areas. The majority of PC users at home and small businesses in the world, however, do not have the budget and expertise to fix or upgrade their PCs regularly. The ripple effect of Y2K can still be intermittently observed in cases such as delayed or missing e-mails well into the 21st century.

The programming problem

The underlying programming problem was quite real.\nIn the
1960s, computer memory and storage were scarce and expensive, and most data\nprocessing was done on punch cards which represented text data in 80-column records.\nProgramming languages of the time, such as COBOL and RPG, processed numbers in their ASCII or EBCDIC representations.\nThey occasionally used an extra bit called a "zone punch" to save one character for a minus sign on a negative number, or compressed two digits into one byte in a form called binary-coded decimal, but otherwise processed numbers as straight text.\nOver time the punch cards were converted to magnetic tape and then disk files and later to simple databases like ISAM, but the structure of the programs usually changed very little.\nPopular software like dBase continued the practice of storing dates as text well into the 1980s and 1990s. Saving two characters for every date field was a significant savings at that time. Most programmers of that time did not expect their programs to remain in use for many decades, so they did not consider it a significant problem. However this was not universally true; there were rare exceptions. The problem was first recognised in 1958 by Bob Bemer as a result of work on genealogical software. He spent the next twenty years trying to make programmers, IBM, the US government and the ISO care about the problem, with little result. This included the recommendation that the COBOL PICTURE clause should be used to specify four digit years for dates. This could have been done by programmers at any time from the initial release of the first COBOL compiler in 1961 onwards. However lack of foresight, the desire to save storage space, and overall complacency prevented this advice from being followed. Despite magazine articles on the subject from 1970 onwards, the majority of programmers only started recognizing Y2K as a looming problem in the mid-1990s, but even then, inertia and complacency caused it to be mostly ignored until the last few years of the decade. Storage of a combined date and time within a fixed binary field is often considered a solution, but the possibility for software to mis-interpret dates remains, because such date and time representations must be relative to a defined origin. Roll-over of such systems is still a problem but can happen at varying dates and can fail in various ways. For example:
  • The typical Unix timestamp stores a date and time as a 32-bit integer number representing the number of seconds since January 1, 1970, and will roll over in 2038. See Unix epoch.\n*The popular spreadsheet Microsoft Excel stores a date as a number of days since an origin (often erroneously called a Julian date). A Julian date stored in a 16-bit integer will overflow after 65,536 days (approximately 179 years). Unfortunately, some releases of the program start at 1900, others at 1904).\n*When a program written in the Perl programming language looks up the current year, it receives the year minus 1900, as with the underlying standard C library function it uses. Many careless programmers incorrectly treated this value as the last two digits of the year. This mostly harmless bug caused many dynamically generated webpages to display January 1, 2000, as "1/1/19100".
Even before January 1, 2000 arrived, there were also some worries about September 9, 1999 (albeit lesser compared to those generated by Y2K). This date could also be written in the numeric format, 9/9/99, which is somewhat similar to the end-of-file code, 9999, in old programming languages. It was feared that some programs might unexpectedly terminate on that date. Another related problem for the year 2000 was that it was a leap year even though years ending in '00' are normally not leap years. (A year is a leap year if it is divisible by 4 unless it is both divisible by 100 and not divisible by 400.) Fortunately, like Y2K, the programs were fixed in time.

Public reaction to the problem

Some industries started experiencing related problems early in the 1990s as software began to process future dates past 1999.\nFor example, in 1993, some people with financial loans that were due in 2000 received (incorrect) notices that they were 93 years past due.\nAs the decade progressed, more and more companies experienced problems and lost money due to erroneous date data.\nAs another example, meat-processing companies incorrectly destroyed large amounts of good meat because the computerized inventory system identified the meat as expired.\nThere were, in fact, many such minor "horror stories" like these, which received much play in the press as 2000 approached. As the decade progressed, identifying and correcting or replacing affected computer systems or computerized devices became the major focus of information technology departments in most large companies and organizations.\nMillions of lines of programming code were reviewed and fixed during this period.\nMany corporations replaced major software systems with completely new ones that did not have the date processing problems.\nIt was frequently reported that corporations had already experienced at least minor Y2K problems, and some major problems as well, due to date look-ahead functions in code and embedded systems, but it was and still is not clear what the full cost and seriousness of these problems were. Y2K was the big media hype story of 1999. Public apprehension was tremendous, reaching, in some quarters, enormous proportions.\nSome individuals stockpiled canned or dried food in anticipation of food shortages. A few commentators predicted a full-scale
apocalypse--three of the best known were computer consultant Edward Yourdon, religious commentator Gary North, and economist Edward Yardeni.

What actually happened

Before the year 2000

\nThere were a number of minor problems that occurred even before the beginning of the year 2000. One such example was a supermarket chain in the midwestern United States. When a cash register encountered a credit card that had an expiration date that was after the year 2000, it created a serious error in the computer systems running the cash register. The error caused the computer system to shut down all the cash registers throughout the entire supermarket chain. This was used by experts to illustrate the need for businesses to study whether or not a Y2K bug could cripple them as well.

After the beginning of the year 2000

\nWhen January 1, 2000 finally came, there were few major problems reported, contrary to many expectations. They mostly occurred in countries with less experience with computers, and/or less money to address the problem. A few made the news, such as a nuclear power plant in Japan that shut down for a short while due to a problem in an auxiliary system. But in most cases, the problems encountered were minor and were fixed by programmers without difficulty. Ironically, many people were upset that there appeared to be so much hype over nothing, because the vast majority of problems had been fixed correctly.\nSome critics have suggested that much preventive effort was unnecessary -- it would have been cheaper not to spend as much examining non-critical systems for flaws and simply fix the few that would have failed after the event. Others say that had it not been for such efforts, the problem would have been much more worse and widespread. For those not involved in the preventive effort, such conclusions were easy to draw, as they had no knowledge of the countless systems that had been corrected, but had only witnessed the problems that had not been fixed in time. Few of them realized that fixing the problems afterwards would have been much harder as active millennium problems would have complicated matters. But in any case, for many systems the checking procedure involved replacement with new, improved functionality and thus in many cases the expenditure proved useful regardless. Preparing for Y2K resulted in many more computer programming and testing jobs than would have otherwise existed. Programs were reviewed and tested that otherwise would have been considered "done".

Items of interest

\n* The United States established the Year 2000 Information and Readiness Disclosure Act, which limited the liability of businesses who had properly disclosed their Y2K readiness.\n* Insurance companies sold insurance policies covering failure of businesses due to Y2K problems.\n* Attorneys organized and mobilized for Y2K class action lawsuits (which were not pursued).\n* No major failures of infrastructure were reported in the
United States or even in many places where they had been widely expected, such as Russia.\n* The Y2K problem mainly affected countries that follow the western calendar (Saudi Arabia, for example, does not).\n* One theory has it that the Federal Reserve increased the money supply in 1999 to compensate for anticipated hoarding by a frightened populace. The populace, however, was not frightened, and the flood of new money fueled a stock market high tide that went out in spring of 2000.\n* Many organisations finally realised the critical importance of their IT infrastructure to their business, and put in place plans to keep it running and restore capability in case of disaster. Such planning may well have helped the relatively speedy return to functioning of New York's critical financial IT systems after the September 11, 2001 terrorist attack.\n* Speculatively, the Y2K spending on information infrastructure caused a slowdown in information technology spending in the year 2000 and 2001 and may eventually lead to higher productivity in future years.\n* The Long Now Foundation, which (in their words) "seeks to promote 'slower/better' thinking and to foster creativity in the framework of the next 10,000 years", has a policy of anticipating the Year 10,000 problem by writing all years with five digits. For example, they list "01996" as their year of founding. \n* One of the founders of the Long Now Foundation, Danny Hillis, was one of the few commentators who publicly predicted that Y2K bugs would cause no significant problems (see "Why Do We Buy the Myth of Y2K?", Newsweek, May 31, 1999).\n* Univision news reported that on the evening of December 31, 1999, a couple in Peru had committed suicide, for fears of what Y2K would bring.

Quote

\n*"We may not have got everything right, but at least we knew the century was going to end."
          –Parodic science fiction author
Douglas Adams, in an advertisement for Apple Macintosh personal computers.

References

\n*DeJesus, Edmund X. (1998). "Year 2000 Survival Guide."
BYTE magazine, July 1998, vol. 23, no. 7 (the last issue of BYTE)

External links

\n*
"A Day in the Hype of America" – Y2K documentary Category:System software\nCategory:Calendars zh-cn:两千年问题

"Well-timed silence hath more eloquence than speech." - Martin Fraquhar Tupper