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 | |
|---|---|---|---|
| timeutilities-1.2.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| timeutilities-1.2-py3-none-any.whl | Python 3 | none | any | Details |
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
|