3 ms·
My first commit to ago.py was 'Fri Jun 29 19:25:55 2012'. >>> import ago >>> import dateutil >>> ago.human(dateutil.parser.parse('Fri Jun 29 19:25:
by foxhop 10y ago
My first commit to ago.py was 'Fri Jun 29 19:25:55 2012'.
>>> import ago
>>> import dateutil
>>> ago.human(dateutil.parser.parse('Fri Jun 29 19:25:55 2012'))
'4 years, 172 days ago'
The current implementation is 66 lines of code including docstrings:
* https://bitbucket.org/russellballestrini/ago/src/tip/ago.py https://bitbucket.org/russellballestrini/ago/src/tip/ago.py
* https://pypi.python.org/pypi/ago https://pypi.python.org/pypi/ago