jhtimmins / human_time

Make Python datetime formatting human readable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Human Time

Make Python datetime formatting human readable

from datetime import datetime
import human_time
time_string = "MONTH_LONG DAY_OF_MONTH, YEAR_LONG HOUR_12:MINUTE AM_PM"

datetime_value = datetime.now()
print(human_time.format(time_string, datetime_value))
# October 03, 2021 02:20 PM

About

Make Python datetime formatting human readable

License:MIT License


Languages

Language:Python 100.0%