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 hashes)

Uploaded Source

Supported by

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