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.1.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.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: duration_humanizer-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 05fc983533c86bb573a399093b4a38a46a45a40c75628b30cf9503d7f93cde6c
MD5 0eb8edfdb819bbdde9b93171ef9fb8ae
BLAKE2b-256 18c2669d0168a0b38cef54ab43795d55b07076064ebd1fc106a86400a8349820

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for duration_humanizer-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8145b2bb63699e59cb3f5e46b0066d7267b30d0fc6b6fc6db7181777d423fb5
MD5 5c321673b897fe5df3c6faf9cbd4663c
BLAKE2b-256 0727e618768bb018b286ce59f239356ed210ba3cbe84b16fcfae26eafad1c99b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.3

2 files

0.2.2

2 files

This release

0.2.1 This release

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