timeutilities
A morden, robust and flexible way to represent and manipulate time, Including operations involving days, hours, minutes, and seconds. It supports datetime conversions and tick operations for real-time tracking. Along with arithmetic operations to facilitate easy time calculations.
Installation
pip3 install timeutilities
Examples
- Get current time
from timeutilities import Time
now = Time.now()
- From DateTime
from timeutilities import Time
from datetime import datetime
now = Time.from_datetime(datetime.now())
- Arithmetic operations
from timeutilities import Time
from time import sleep
previous_time = Time.now()
sleep(5)
current_time = Time.now()
#Addition
total_time = current_time + previous_time
print(total_time)
#Subtraction
difference = current_time - previous_time
print(total_time)
#Comparison
print(current_time > previous_time)
print(current_time < previous_time)
print(current_time >= previous_time)
print(current_time <= previous_time)
Metadata
Release files for timeutilities 1.2
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 |
|---|---|---|---|---|
| timeutilities-1.2.tar.gz | 2.6 kB | Without provenance | Details for timeutilities-1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| timeutilities-1.2-py3-none-any.whl | Python 3 | none | any | Details for timeutilities-1.2-py3-none-any.whl |
Total release size: 5.6 kB
Release files / timeutilities-1.2.tar.gz
| Download URL | timeutilities-1.2.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d85e898a112910c9ded8b8af6c41d3151e10d6e008323b72d20b3d41f921c66
|
|
BLAKE2b-256 checksum How to use checksums |
9f785d4f35fb34eddc0f0b08cda5a22390180e41d76f4544c4c04baca66396ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / timeutilities-1.2-py3-none-any.whl
| Download URL | timeutilities-1.2-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6cbcaee9e26cecfda63096bee004b810d9cb2e7c927e074c1c263b482a0ddd0a
|
|
BLAKE2b-256 checksum How to use checksums |
5021acb5ba9f827457c32eec5d36e1e1125600221e4676e8259568984ab64345
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for timeutilities 1.2
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.