Dates and times aren't that hard - honestly!
summary
Explains why dates and times are manageable by showing concrete types and rules: use an instant with nanosecond precision for timestamps, represent local date/time separately, and attach a time zone or offset when needed. Mentions the Noda Time library, gives real surprises like Samoa skipped Dec 30 2011 and Sweden once having February 30 1712, warns against DateTime.Now and advises a testable clock interface. Recommends storing the original user fields plus an ISO 8601 instant — store both local fields and UTC instant — and write lots of tests.
AI-written summary · about
chapters (8)
- 0:00Start
- 3:35Non-agenda
- 6:22Concepts
- 12:35Interval
- 14:49Calendar system (CalendarSystem)
- 21:25Time of day (Local Time)
- 26:17Date and time (LocalDate Time)
- 54:21Tricky bits








