AlexHill / temporal-infinities

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%