Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Human-oriented representation of time deltas, a Python library

Project Description

Convert time deltas into phrases like “5 minutes ago”, “3 hours ago”, “2 days ago” etc.

This package has a number of modules in it, each for separate language. It is standard that module pytimeago.X has function X, which accepts at least on argument – number of seconds between two events. It may also accept extra keywords, which should be documented in the docstring of the function. Returned is always unicode string.

Usage pattern:

from pytimeago.english import english from time import time, sleep

a = time() # …do something here… delta = int(time() - a) # could use sometimedetal.total_seconds() print “job started %s” % english(delta)

Prints, e.g.

job started 15 minutes ago

Available languages are:

from pytimeago.english import english from pytimeago.english import english_short from pytimeago.french import french

Licenced under GNU Lesser General Public License, you can get a copy at:

Written by Adomas Paltanavicius ( Packaged, french added, and computation enhanced by Stephane “Twidi” Angel (

Release History

This version
History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.1 kB) Copy SHA256 Hash SHA256
Source None Mar 13, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers