A Matter of Time
summary
Code assumes lots of hidden rules: leap years need century exceptions (1900 vs 2000), Python integer identity can be cached, and legal changes like Massachusetts same‑sex marriage force schema edits. Reliable time needs a UTC reference, the tz (tzdata) history of offsets (e.g. US standard time adoption 1883‑11‑18, Gregorian switch Oct 4→15, 1582), and libraries like Moment.js or equivalent. Intention matters: durations (2,592,000 seconds) differ from calendar periods (one month), DST creates missing and duplicated local hours, and naive math breaks date arithmetic (Jan 30 +1 month twice → Mar 28).
AI-written summary · about
