Friday, January 07, 2005

The Friday 13th Bug

This is an interesting find.

The year 2038 bug

The first 2038 problems are already here. Many 32-bit programs calculate time averages using (t1 + t2)/2. It should be quite obvious that this calculation fails when the time values pass 30 bits. In other words, on the 10th of January 2004 the occasional system will perform an incorrect time calculation until its code is corrected. The precise date of this occurrence is Tue Jan 19 03:14:07 2038. At this time, a machine prone to this bug will show the time Fri Dec 13 20:45:52 1901, hence it is possible that the media will call this The Friday 13th Bug.