Data type for representing time slots with a start and end.
Project description
timeslot
Class for working with time slots that have an arbitrary start and end.
Completes the Python datetime module: datetime (a time), timedelta (a duration), timezone (an offset), timeslot (a range/interval).
Supports operations such as: overlaps, intersects, contains, intersection, adjacent, gap, union.
Initially developed as part of aw-core, and inspired by a similar library for .NET.
You might also be interested in pandas.Interval
.
Usage
TODO
Synonyms
- timerange (the name was already taken on PyPI)
- timeperiod (already taken on PyPI)
- time interval
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
timeslot-0.1.1.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file timeslot-0.1.1.tar.gz
.
File metadata
- Download URL: timeslot-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.11.13-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 737d516189c7a1c849549f14930d802726a92307cdafa19d81947d25dbe7f504 |
|
MD5 | 74e8deae07b0cc1c185755fdf6638f4f |
|
BLAKE2b-256 | 9ecd826af6f1f6ee1b4e74db8fd76fc5435093b9a9eba78fb6f0f2cb1b6a7270 |
File details
Details for the file timeslot-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: timeslot-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.11.13-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cdad8d7510c7bb734774a748db447e3e15da53b1c9d07760988a83410f1fc29 |
|
MD5 | 110257c82d35eda0490c8203084633c0 |
|
BLAKE2b-256 | d72e36a23b54be595723675f721472bf9d7586ea4afdc637f3817a59f1a12c56 |