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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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

Hashes for pytimeNSW-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ad481ae9abf062396c28da5bc48de680add591487238eb5beb7a0e88c4354cd
MD5 861fe764ac94146a4a9f76bf432b462d
BLAKE2b-256 55f055eeff24d1b6e729268944bc1a2fd8d62e0a65f730cfd697785a8aab30c5

See more details on using hashes here.

File details

Details for the file pytimeNSW-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytimeNSW-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fc8fcfbe5824c8cbc1844b7b5465169a67b5564ec78f13a62f7e70a1ec3f3772
MD5 7db540b13349e29c3fed38a50ad31dac
BLAKE2b-256 0ff10da4e3f7c835a26587188552a2270244318afb6ed63554c1869cd3189304

See more details on using hashes here.

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