Skip to main content

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'

Metadata

Release files for datime 2025.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datime 2025.0
File Size Uploaded Provenance Actions
datime-2025.0.tar.gz 2.5 kB Without provenance Details for datime-2025.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datime 2025.0
File Interpreter ABI Platform Actions
datime-2025.0-py3-none-any.whl Python 3 none any Details for datime-2025.0-py3-none-any.whl

Total release size: 5.3 kB

Release files / datime-2025.0.tar.gz

Download URL datime-2025.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2f43bb3245083223c203660bb6dc51894e2ffe75e7c5dfa32592c5d5c3d689e3
BLAKE2b-256 checksum
How to use checksums
c4c2859f930489dd43e72fb7174b0e6213c769b32739b5b5a7173cf669eb1c3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.17

Release files / datime-2025.0-py3-none-any.whl

Download URL datime-2025.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66d90e6532a0407a7aecc6cfe025dd47a7f5a8e018eb2b786d70bc785e972793
BLAKE2b-256 checksum
How to use checksums
1f93b6fe150918ec307fed0a0d2a53f5701efc377d630a4f1da15c3d6a5dc45d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.17

Security for datime 2025.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page