Skip to main content

Duration Humanizer

A simple Python package that converts seconds into a human-readable duration.

Installation

pip install duration-humanizer


Usage
from duration_humanizer import humanize

print(humanize(3661))

Output : 1 hour 1 minute 1 second   

Download files

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

Source Distribution

duration_humanizer-0.2.2.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

duration_humanizer-0.2.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file duration_humanizer-0.2.2.tar.gz.

File metadata

  • Download URL: duration_humanizer-0.2.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for duration_humanizer-0.2.2.tar.gz
Algorithm Hash digest
SHA256 58e7106b480daa992c3ef17854b72274e4c4792c009a3b548ca4a58c38db6e86
MD5 d0e60e410316841a8bdbba1812d93e69
BLAKE2b-256 7e5d72123a07ccf3ae505fe20dabbc5cb13c4aa8f9e9ad8e0040ea38b058c372

See more details on using hashes here.

File details

Details for the file duration_humanizer-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for duration_humanizer-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 196ccdd0cc0f9af8d89e9006e38dc4415687c12accb41c2c4da820def5726212
MD5 15474fc25efccadafe79d1553b4611a2
BLAKE2b-256 87c61d7c60d291b22c56c3c46654de735cde7409c13d5b6ee1ccfc299a7fbc1f

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.3

2 files

This release

0.2.2 This release

2 files

0.2.1

2 files

0.2.0

2 files

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