 | Year 2038 problem: Encyclopedia - Year 2038 problem
Year 2038 problem
In computing, the year 2038 problem may cause some computer software to fail in or about the year 2038. The problem affects programs that use the POSIX time representation, which represents time as the number of seconds (ignoring leap seconds) since January 1, 1970. This representation is standard in Unix-like operating systems and also affects software written for most other operating systems because of the broad deployment of C. On most 32-bit systems, the time_t data type used to store this second count is a signed 32-bit integer. The latest time that can be represented in this format, following the POSIX standard, is 03:14:08 UTC on January 19, 2038. Times beyond this moment will "wrap around" and be represented internally as a negative number, and cause programs to fail, since they will see these times not as being in 2038 but rather in 1970 or 1901, depending on the implementation. Erroneous calculations and decisions may therefore result.
There is no easy fix for this problem for existing CPU/OS combinations. Changing the definition of time_t to use a 64-bit type would break binary compatibility for software, data storage, and generally anything dealing with the binary representation of time. Changing time_t to an unsigned 32-bit integer would affect many programs that deal with time differences.
Most operating systems for 64-bit architectures already use 64-bit integers in their time_t. The move to these architectures is already underway and many expect it to be complete before 2038. However hundreds of millions of 32-bit systems are deployed as of 2006, many in embedded systems, and it is far from certain they will all be replaced by 2038.
Using a 64-bit value will delay the problem date about 290 billion years. (To be more precise, it will happen on Sunday, 4 December 292,277,026,596 15:30:08 UTC [1]). The year 292,277,026,596 problem is not, however, widely regarded as a pressing issue.
See also
- Unix time
- Year 2000 problem
- Year 10,000 problem
- Network Time Protocol
- John Titor
- Age of the universe
- Epoch (reference date)
Other related archives1970, 2038, 292, 277, 026, 596, 32-bit, 64-bit, Age of the universe, C, CPU, Epoch (reference date), January 1, January 19, John Titor, Network Time Protocol, OS, POSIX time, UTC, Unix, Unix time, Year 10, 000 problem, Year 2000 problem, as of 2006, computer software, computing, embedded systems, integer, leap seconds, signed, time_t, year
 Adapted from the Wikipedia article "Year 2038 problem", under the G.N U Free Docmentation License. Please also see http://en.wikipedia.org/wiki |