Skip to main content

Friendly Dates and Times

Project description

Production: travismaster

Development: travisdevelop

User-friendly functions to help perform common date and time actions.


To get the system time zone’s name:


To get the current date:

To get tomorrow’s date:


To get yesterday’s date:


To get a datetime one year from now:


To convert to a different time zone:

when.shift(value, from_tz='America/New_York', to_tz='UTC')

To get the current time:

Full documentation can be found on Read the Docs.


Installing is easy:

pip install whenpy

or download the source and run:

python install

Project details

Download files

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

Files for whenpy, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size whenpy-0.3.0.tar.gz (12.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page