Skip to content
Dimitar Ivanov edited this page Aug 3, 2024 · 6 revisions

About

The temporals package aim is to provide a utility layer on top of the Python's built-in datetime module and allow the user to define time, date and datetime periods (intervals).

⚠️ Currently, the library uses the built-in datetime functionality to define the periods' duration (the Duration class is initialized as an object accessible via the duration attribute for each period), so that means that if you provide naive start and end points in time, the duration of that period will be naive as well, and vice versa; just like the datetime package, it will raise an error if you attempt to create a period with a naive and aware start/end.

Installation

You can install the package from the PIP:

pip install temporals

Documentation

API