This repository was archived by the owner on Dec 19, 2019. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork20
dirn/When.py
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
User-friendly functions to help perform common date and time actions.
To get the system time zone's name:
when.timezone()
To get the current date:
when.today()
To get tomorrow's date:
when.tomorrow()
To get yesterday's date:
when.yesterday()
To get a datetime one year from now:
when.future(years=1)
To convert to a different time zone:
when.shift(value, from_tz='America/New_York', to_tz='UTC')
To get the current time:
when.now()
Full documentation can be found onRead the Docs.
Installing When.py is easy:
pip install whenpy
or download the source and run:
python setup.py install
About
Friendly Python Dates
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.