Skip to main content
Help us improve Python packaging – donate today!

A very simple python library, used to format datetime with `*** time ago` statement. eg: "3 hours ago".

Project Description

A very simple python library, used to format datetime with *** time ago statement.

Install

pip install timeago

Usage

import timeago, datetime
d = datetime.datetime.now() + datetime.timedelta(seconds = 60 * 3.4)
# locale
print (timeago.format(d, locale='zh_CN')) # will print 3分钟后



Release history Release notifications

This version
History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

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
timeago-1.0.8-py2.py3-none-any.whl (23.4 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Dec 11, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page