This project has been archived by its maintainers, and is no longer receiving any updates.
datetime-interval
The builtin datetime module provides classes for points in time (date, and
datetime) as well as durations (timedelta), but it does not account for
time durations at a specific point. This module provides Interval, which
contains a start and end date or datetime, and a duration timedelta.
This is useful for representing calendar events. This module also provides
PeriodicInterval which can be used for recurring events, by containing a
period timedelta and a count of occurrences (either an int or forever).
TODO:
- Interval
isoformatmethod (start/end).- This wouldn't work on PeriodicInterval, as recurring intervals have a different semantics in ISO 8601.
- Property-based testing with
props - Add operators for PeriodicInterval (*, [])
- How to account for e.g. every Tuesday and Thursday
Metadata
Release files for datetime-interval 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datetime_interval-0.3.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datetime_interval-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / datetime_interval-0.3.tar.gz
| Download URL | datetime_interval-0.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fce67a2af868e2f9c18f0d819abaacda8a37fe617ee8b84692ee3bf24314905
|
|
BLAKE2b-256 checksum How to use checksums |
81d7298276b5054a7f6b1d6749e50272b6489ea4e29ad19049f145fe251ab36a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / datetime_interval-0.3-py3-none-any.whl
| Download URL | datetime_interval-0.3-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0bb24f182eecd80c70c07c3dc30f7eb619ba436a2d04b898b2c1d76c35657d42
|
|
BLAKE2b-256 checksum How to use checksums |
8dfd0b10edc98d9703285bc4c4416a88d74bcf474d6825b09dbc3085f48c5825
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|