1. DateTimeRange¶
1.1. Summary¶
DateTimeRange is a Python library to handle a time range. e.g. check whether a time is within the time range, get the intersection of time ranges, truncate a time range, iterate through a time range, and so forth.
2. Installation¶
2.1. Installation: pip¶
pip install DateTimeRange
2.2. Installation: conda¶
conda install -c conda-forge datetimerange
3. Dependencies¶
4. Features¶
Features of DateTimeRange
class include:
- Supported operations:
Equation
Addition
Subtraction
Intersection
Union
Contains
Truncate
Split
Iteration
Timezone support
Daylight saving time support