Pytz: The Fastest Footgun in the West

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • Revelo Payroll - Free Global Payroll designed for tech teams
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Sonar - Write Clean Python Code. Always.
  • Pendulum

    Python datetimes made easy

    Pendulum is quite good[0]. Relatively intuitive interface.

    When I left Rails, this is one area I really missed.

    Time.use_zone("Singapore") { ( - 3.days).beginning_of_week }

    This readable line in datetime utils or even pendulum, is such a pain.


  • pytz

    pytz Python historical timezone library and database

    Well, pytz actually is technically flawed at the moment because it cannot read TZif Version 2+ files, so it breaks for dates >2038 (and it would break if you tried to point it at system data generated with zic's "slim" mode), see this:

    But you are right that pandas' use of pytz is benign and as far as I know doesn't suffer the same usability issues.

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts