-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Dimitar Ivanov edited this page Aug 3, 2024
·
6 revisions
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).
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.
You can install the package from the PIP:
pip install temporals