pip3 install ezDT or pip install ezDT
simple python functions for the datetime & time built-in packages
today()
- returns todays date in '%Y-%m-%d %H:%M:%S' format
unixToDatetime(epochTime)
- convert unix epoch time to datetime
datetimeToUnix(ogDatetime)
- convert datetime to unix epoch time
addDays(ogDatetime, nDays):
- add days to a datetime
subtractDays(ogDatetime, nDays):
- subtract days from a datetime