Skip to content
Friendly Python Dates
Python Makefile
Find file
Latest commit 202728e Feb 27, 2016 @dirn Merge pull request #6 from jbrockmendel/develop
Fixed a bug in _timezone_from_etc_localtime that returned

README.rst Friendly Dates and Times

Production: travismaster coverallsmaster

Development: travisdevelop coverallsdevelop

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
Something went wrong with that request. Please try again.