Skip to main content

time2words

Module for converting numerical representation of time to text.

Currently this works only for relative time and the output shows an aproximation. E.g. “about five and a half months”.

Including precise time and time of day is work in progress.

Usage

from time2words import relative_time_to_text
relative_time_to_text(years=5, months=8, days=5) # -> "less than six years"

Release files for time2words 0.1.2

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

Source distribution (sdist)

Source distribution for time2words 0.1.2
File Size Uploaded
time2words-0.1.2.tar.gz 4.2 kB Details

Release files / time2words-0.1.2.tar.gz

Download URL time2words-0.1.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fff36a3f80a418d5b58fd3f2e328d1d36dbe5b3a13dfafc490d7e26f41c260b5
BLAKE2b-256 checksum
How to use checksums
38180bff95bf1313df9533671b1d61c21e936ea0f1bc4c5903509200281202e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

0.0.2

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