This section explores how computers represent time as data, specifically as an integer count of cycles from an oscillator since an arbitrary epoch. It defines Epoch Time and the Unix Epoch (Jan 1, 1970). The core failure mode is the Year 2038 problem, where 32-bit signed integer counters overflow, causing dates to wrap to 1901. The solution is migration to 64-bit counters. The section explains timestamp resolution (seconds, milliseconds, nanoseconds) and the fundamental trade-off triangle between range, resolution, and storage size. A key case study is the 1991 Patriot missile failure, where accumulated floating-point error in the clock calculation caused a missed interception. The narrative argues that computers have no inherent sense of time; they construct 'now' through computation, making them susceptible to representation errors like overflow and rounding. The logical construction of time from counted cycles is mapped out, and a timeline of digital time failures is provided.
Read Chapter
-
Chasing the Truth: NTP and Drift 5 min read -
Logical Time: Ordering without Clocks 7 min read