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 hashes)
Built Distribution
Close
Hashes for pytimeNSW-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc8fcfbe5824c8cbc1844b7b5465169a67b5564ec78f13a62f7e70a1ec3f3772 |
|
MD5 | 7db540b13349e29c3fed38a50ad31dac |
|
BLAKE2b-256 | 0ff10da4e3f7c835a26587188552a2270244318afb6ed63554c1869cd3189304 |