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'

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datime-2026.0.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datime-2026.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file datime-2026.0.tar.gz.

File metadata

  • Download URL: datime-2026.0.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for datime-2026.0.tar.gz
Algorithm Hash digest
SHA256 797c7fc54627f9087e5af3748d6952bb0122faa97d6c005d020d605764daa452
MD5 ff9de6ee423e6ec4ae7b9fdab0577b58
BLAKE2b-256 0fca5b49918c912953da6964352c6b797a74a1fbfb0ce91dcca400dc8ead888b

See more details on using hashes here.

File details

Details for the file datime-2026.0-py3-none-any.whl.

File metadata

  • Download URL: datime-2026.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for datime-2026.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1dfc0c39f6d48455bedee4044db1432e21820f7a72902a0a9cad491048bfaf4
MD5 4fc46c01b2b161856b5c46ab5f59958d
BLAKE2b-256 6fac5e6bf8cb538a5ca3d08b46c83bd54a6b9a6645ebc4db062b0b14640395a2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2026.0 This release

2 files

2025.0

2 files

2023.1

2 files

2023.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page