datime
Python package with convenience functions for dates, times, and intervals
Usage
pretty_duration_short
Use the function pretty_duration_short to convert a whole number of seconds to a string that indicates the number of
hours, minutes, and seconds in the provided duration.
>>> import datime
>>> datime.pretty_duration_short(59)
'59s'
>>> datime.pretty_duration_short(256)
'4m16s'
>>> datime.pretty_duration_short(60 * 60)
'1h0m0s'
>>> datime.pretty_duration_short(4096)
'1h8m16s'
>>> datime.pretty_duration_short(2**17)
'36h24m32s'
Release files for datime 2026.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datime-2026.0.tar.gz | 1.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datime-2026.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.2 kB
Release files / datime-2026.0.tar.gz
| Download URL | datime-2026.0.tar.gz |
|---|---|
| Size | 1.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
797c7fc54627f9087e5af3748d6952bb0122faa97d6c005d020d605764daa452
|
|
BLAKE2b-256 checksum How to use checksums |
0fca5b49918c912953da6964352c6b797a74a1fbfb0ce91dcca400dc8ead888b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / datime-2026.0-py3-none-any.whl
| Download URL | datime-2026.0-py3-none-any.whl |
|---|---|
| Size | 1.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1dfc0c39f6d48455bedee4044db1432e21820f7a72902a0a9cad491048bfaf4
|
|
BLAKE2b-256 checksum How to use checksums |
6fac5e6bf8cb538a5ca3d08b46c83bd54a6b9a6645ebc4db062b0b14640395a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|