Closed zjuchenyuan closed 7 years ago
a while
means the second parameter is earlier than the first one.
the first parameter is date
, and the second one is now
so I think this is maybe you want:
>>> print (timeago.format('2016-05-27 12:12:03', '2016-05-27 12:12:12'))
just now
README says:
but I got "a while" as the output
I installed timeago by
pip install timeago
, andtimeago.__version__
is '1.0.7'