Pytz: The Fastest Footgun in the West

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • 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") { (Time.zone.now - 3.days).beginning_of_week }

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

    [0] https://github.com/sdispater/pendulum

  • 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: https://github.com/stub42/pytz/issues/48

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

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
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