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.

Source Distribution

whenpy-0.3.0.tar.gz (12.9 kB view hashes)

Uploaded source

Supported by

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