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