|
|
The full R_TIME interface implemented in terms of Universal Coordinated Time (UTC) time. This implementation provides a smaller code size. However, the limitation of this implementation is that it is only valid for dates up to the year 2038. Simply, UTC is the number of seconds elapsed since Jan 1 1970. Most computers use a standard 4 byte integer for the second count. This is 31 bits, storing a value of 2^31. The remaining bit is the sign. This means that when the second count reaches 2147483647, it will wrap to -2147483648. The precise date of this occurrence is Tue Jan 19 03:14:07 2038. At this time, a machine using the standard 4 byte integer will show the time as Fri Dec 13 20:45:52 1901. |