Skip to main content

A Python library for converting numerical representation of time to text.

Project description

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"

Project details


Download files

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

Source Distribution

time2words-0.1.2.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file time2words-0.1.2.tar.gz.

File metadata

  • Download URL: time2words-0.1.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for time2words-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fff36a3f80a418d5b58fd3f2e328d1d36dbe5b3a13dfafc490d7e26f41c260b5
MD5 fa1b37b762171c40784cb3b8bfc9d220
BLAKE2b-256 38180bff95bf1313df9533671b1d61c21e936ea0f1bc4c5903509200281202e7

See more details on using hashes here.

Supported by

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