Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/alexhill/temporal-infinities
- Owner: AlexHill
- License: bsd-3-clause
- Created: 2020-02-06T09:15:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-30T23:53:57.000Z (over 4 years ago)
- Last Synced: 2024-11-07T09:51:44.627Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.