daytime
This module extends the datetime.time-module and makes it more handy respectivly to comparison, addition and substraction. You can compare, add and substract a daytime with another daytime, a datetime.time-object or an int or float as total amount of seconds. Making sums is also possible with a datetime.timedelta.
Latest Version
The latest version of this project can be found at : http://github.com/thomst/daytime.
Installation
Option 1 : Install via pip
pip install daytime
Option 2 : If you have downloaded the source
python setup.py install
Documentation
How to use?
from daytime import DayTime import datetime daytime1 = DayTime(2, 20, 23, 90000) daytime2 = DayTime(12, 25, 0, 8400) daytime1 - daytime2 # DayTime(13, 55, 23, 81600) daytime2 + datetime.time(22,3,4,5) # DayTime(10, 28, 4, 8405) daytime1 - 12400 # DayTime(22, 53, 43, 90000) daytime1 < daytime2 # True daytime2 > 4800 # True DayTime.utcfromtimestamp(24000.4) # DayTime(6, 40, 0, 400000)
Reporting Bugs
Please report bugs at github issue tracker: https://github.com/thomst/daytime/issues
Metadata
Release files for daytime 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| daytime-0.4.tar.gz | 2.4 kB | Without provenance | Details for daytime-0.4.tar.gz |
Release files / daytime-0.4.tar.gz
| Download URL | daytime-0.4.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
653c2af965966d677db6342e6de20d34a4a9261fe27e33b04a14f0ec74fd567d
|
|
BLAKE2b-256 checksum How to use checksums |
18deba3d8b7a691971ba8805a2e8678c9054408e2caba210359245c306d1de52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for daytime 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.