Get the latest tech news

Whenever: Typed and DST-safe datetimes for Python


⏰ Modern datetime library for Python. Contribute to ariebovenberg/whenever development by creating an account on GitHub.

Whenever helps you write correct and type checked datetime code, using well-established concepts from modern libraries in other languages. It attempts to provide a more "friendly" API than the standard library, but doesn't address the core issues: it keeps the same footguns, and its decision to reduce the number of types to just one ( arrow.Arrow) means that it's even harder for typecheckers to catch mistakes. 🌐 DST-safe arithmetic 🛡️ Typesafe API prevents common bugs ✅ Fixes issues ⚖️ Based on proven and familiar concepts ⚡️ Unmatched performance 💎 Thoroughly tested and documented 📆 Support for date arithmetic ⏱️ Nanosecond precision 🦀 Rust!—but with a 🚀 Support for the latest GIL-related improvements (experimental)

Get the Android app

Or read this on Hacker News

Read more on:

Photo of python

python

Photo of DST

DST

Photo of datetimes

datetimes

Related news:

News photo

Show HN: Python at the Speed of Rust

News photo

Python's PyPI Finally Gets Closer to Adding 'Organization Accounts' and SBOMs

News photo

Xlwings Lite – Python in Excel Using Pyodide