Skip to main content

Simple datetime functions

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ezDT-0.0.2.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

ezDT-0.0.2-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page