JBLarson / ezDT

simple python functions for the datetime & time built-in packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ezDT

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

About

simple python functions for the datetime & time built-in packages


Languages

Language:Python 100.0%