Skip to main content

Convert data to their natural (human-readable) format

Project description

Example Usage

Basic usage:

>>> import datetime
>>> from natural.date import duration
>>> print duration(datetime.datetime.now())
'just now'

We speak your language (with your support):

>>> import locale
>>> locale.setlocale(locale.LC_MESSAGES, 'nl_NL')
>>> print duration(datetime.datetime.now())
'zojuist'

Bugs/Features

You can issue a ticket in GitHub: https://github.com/tehmaze/natural/issues

Project details


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