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.

Filename, size & hash SHA256 hash help File type Python version Upload date
whenpy-0.3.0.tar.gz (12.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page