PyTime fork for NSW, Australia
Project description
PyTimeNSW is a fork of PyTime with additional days added for NSW public holidays.
Installation (not yet complete)
pip install pytimeNSW
Basic Usage
>>>from pytimeNSW import pytimeNSW
>>>
>>>queen = pytimeNSW.queen() # Queen's Birthday
>>>print(queen)
datetime.date(2017, 6, 12)
>>>
>>>pytimeNSW.public(easter) # Easter Public Holidays
[datetime.date(2017, 3, 30),
datetime.date(2017, 3, 31),
datetime.date(2017, 4, 1),
datetime.date(2017, 4, 2)]
>>>
>>> labour = pytimeNSW.labour(2019) # 2019 Labour Day
>>>print(labour)
datetime.date(2019, 10, 7)
Other public holidays
>>>pytimeNSW.boxing() # Boxing Day
datetime.date(2015, 12, 26)
>>>
>>>pytimekr.anzac() # Anzac Day
datetime.date(2017, 4, 25)
>>>
>>>pytimekr.australia() # Australia Day
datetime.date(2017, 1, 26)
License
MIT
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
pytimeNSW-0.1.0.tar.gz
(6.8 kB
view details)
Built Distribution
File details
Details for the file pytimeNSW-0.1.0.tar.gz
.
File metadata
- Download URL: pytimeNSW-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ad481ae9abf062396c28da5bc48de680add591487238eb5beb7a0e88c4354cd |
|
MD5 | 861fe764ac94146a4a9f76bf432b462d |
|
BLAKE2b-256 | 55f055eeff24d1b6e729268944bc1a2fd8d62e0a65f730cfd697785a8aab30c5 |
File details
Details for the file pytimeNSW-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pytimeNSW-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc8fcfbe5824c8cbc1844b7b5465169a67b5564ec78f13a62f7e70a1ec3f3772 |
|
MD5 | 7db540b13349e29c3fed38a50ad31dac |
|
BLAKE2b-256 | 0ff10da4e3f7c835a26587188552a2270244318afb6ed63554c1869cd3189304 |