Vortrag: A Day Has Only 24±1 Hours
when importing pytz is not enough
Diese Veranstaltung wird nicht aufgezeichnet
On the last Sunday of October you may get “one more hour of sleep” but may spend much more time debugging code dealing with the time zones, daylight saving time shifts and datetime stuff in general. This talk is 20% about programming and 80% about the world history and short-sighted political decisions having a long-term impact on the technology.
After a short overview of the standard datetime module and its usage in different geographical contexts, we’ll have a look at the pytz library and discover all the 591 timezones it comes with. We’ll see why pytz is not a part of the standard library, as well as when and how and why this package gets frequent updates. At the end we'll have a look at a few pitfalls that may make you avoid timezones altogether.