Skip to main content

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)

Uploaded Source

Built Distribution

pytimeNSW-0.1.0-py2.py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page