Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexhill/temporal-infinities

Infinity values for Python's datetime, date and timedelta.
https://github.com/alexhill/temporal-infinities

Last synced: 7 days ago
JSON representation

Infinity values for Python's datetime, date and timedelta.

Awesome Lists containing this project

README

        

# temporal-infinities

This module provides infinity values compatible with `datetime`, `date`, and `timedelta` in Python 3.

These values are useful to work with when you need to represent time ranges with no beginning or no end. Usually, you would otherwise use `None` to represent these infinite ranges, which leads to extra code to handle those special cases. By using infinity values compatible with Python's built-in types, you eliminate those special cases.