A very simple python library, used to format datetime with *** time ago statement.
pip install timeago
import timeago, datetime
d = datetime.datetime.now() + datetime.timedelta(seconds = 60 * 3.4)
print (timeago.format(d, locale='zh_CN')) # will print 3分钟后
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.