ago is a Python module that provides human readable timedeltas.
How to install
How to use
Import ago and create a timedelta object:
from ago import delta2dict, human
from datetime import datetime
# pretend this was stored in database
d1 = datetime(
year = 2010,
# this is right now
d2 = datetime.now()
# subtract the two for a timedelta object
delta = d2 - d1
# create a dictionary out of the timedelta
# not needed but accessable
delta_dict = delta2dict( delta )
# display a human readable timedelta
print 'Created ' + human( delta ) + ' ago.'
# optionally pass a precision
print 'Created ' + human( delta, 3 ) + ' ago.'
print 'Created ' + human( delta, 6 ) + ' ago.'
Download and use it now: ago 0.0.2 free download
Related programsOur Recommendations
eea.versions is a versioning system based on a version ID to groupcertains objects andDownload
Krecipes is a new Open Source project for an exciting world that is almost forgotten in the TuxDownload
Taurus stands for TAngo User interface 'R' US and is a Python framework for both CLI and GUI tangoDownload
FunEyes is a Qt4 fun faces desktop toy based on KEyes.Developer commentsI've rewrote it in C++ andDownload
Postfix is an open source mailer tool that started life as an alternative to the widely-usedDownload
This is a Google Chrome and Firefox theme especially designed for serious Clemson athletics fans.Download
Ring sensors hotified is a modified version of the Ring Sensors packaged with screenlets to be ableDownload
YAZ is a programmersâ€™ toolkit supporting the development of Z39.50/SRW/SRU clients and servers.Download
Big Blue is a GTK theme based on Soffice but with more blue. This is a fairly simple design withDownload