~/talk

Working with date and time data in .NET

Talkat .NET fwdays'22 conference · on Saturday, 2022-10-15· [web-platform, databases]
slides:none on file

Explains when to use Instant/Duration/Interval versus LocalDate/LocalTime/ZonedDateTime, why DateTimeKind and DateTimeOffset mislead, and why use Noda Time types for clear intent; demos include DateOnly/TimeOnly, mapping instants through time zones, and handling ambiguous or skipped local times during DST. Shows testing pattern: inject an IClock (or fake clock) to avoid time-dependent flakiness and cautions about calendar differences and database column semantics when persisting timestamps.

AI-written summary · about

  1. 0:00Date/time challenges in .NET
  2. 3:18Why date/time handling is complex
  3. 8:24Approaching date/time work
  4. 8:45Machine vs civil time
  5. 10:28Problems with DateTime
  6. 14:03Why Noda Time was created
  7. 18:21Machine time types
  8. 21:57When to use machine time types
  9. 22:17Calendar systems complexities
  10. 24:43Dates/times in different calendars
  11. 25:48TimeOnly vs DateOnly in .NET 6
  12. 27:10Combining dates and times
  13. 27:31Time zones pitfalls
  14. 31:29ZonedDateTime limitations
  15. 33:15Periods and arithmetic challenges
  16. 33:58Key tips for date/time handling
  17. 36:25Testing with IClock
  18. 38:14Summary and call to action
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.