Python library to convert a timestamp object into a human readable string
#!/usr/bin/env python3
import humanify
import datetime
current_date = datetime.datetime.now()
print(humanify.time_only(current_date))
print(humanify.date(current_date))
print(humanify.datetime(current_date))
Directly with pip
:
pip install -U https://github.com/ef4203/humanify/archive/master.zip
With Pipenv:
pipenv install -e git+https://github.com/ef4203/humanify/archive/master.zip
You may find more information about humanify in the documentation files.