Changes between Initial Version and Version 1 of TBR/Review/DateTimeHardwareIssues


Ignore:
Timestamp:
Jul 13, 2007, 12:02:51 AM (14 years ago)
Author:
Rsg
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TBR/Review/DateTimeHardwareIssues

    v1 v1  
     1= DateTimeHardwareIssues =
     2
     3
     4Numerous Real-Time Clock (RTC) controllers provide only a two-digit Binary Coded Decimal (BCD) representation for the current year. Without software correction, these chips are a classic example of the Y2K problem. When the RTC rolls the year register over from 99 to 00, the device has no idea whether the year is 1900 or 2000. It is the responsibility of the device driver to recognize this condition and correct for it. The most common technique used is to assume that all years prior to either the existence of the board or RTEMS are past 2000. The starting year (epoch) for RTEMS is 1988. Thus,
     5
     6 * Chip year values 88-99 are interpreted as years 1988-1999.
     7 * Chip year values 00-87 are interpreted as years 2000-2087.
     8
     9Using this technique, a RTC using a two-digit BCD representation of the current year will overflow on January 1, 2088.