Working with Dates and Times (It's Possible!)
summary
Clear actionable rules and examples: a taxonomy of instants, local date/times, time zones and periods; concrete tool guidance using System.DateTime and Noda Time; avoid DateTime.Now/UTCNow and search code for date/time now; inject an IClock and fake it for tests; store the original local date/time plus zone (example: 2019‑12‑01 09:00 in Paris maps to 08:00 UTC now but rules can change); beware Morocco’s 2‑day rule change, Sweden’s 30 Feb 1712, and that Noda Time deliberately omits leap seconds.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:05Dates and Times
- 3:14The mistake of me
- 4:19Instants
- 10:50Local
- 20:43Durations
- 22:49DateTime
- 24:50Think
- 25:45Testing
- 27:25Different Concepts
- 29:41Limit Scope
- 31:09Timezone Abbreviations
- 32:42Timezone Advice
- 33:29Example
- 39:19Summary
- 41:57Be kind
related talks
01h 00mDates and times aren't that hard - honestly!
01h 05mWorking with Time is Easy
48mWorking with date and time data in .NET
52mIt's about time
50mIt’s About Time! Practical examples of time zones in TypeScript
44mDates and Times on the Horizon? Run… or Come Learn All the Traps That...
27mI have a Date
32mIt's about time
