Metadata-Version: 2.0
Name: pytimeNSW
Version: 0.2.0
Summary: PyTime fork for NSW, Australia
Home-page: https://github.com/MatthewBurke1995/PyTimeNSW
Author: Matthew Burke
Author-email: mperoburke@gmail.com
License: MIT
Keywords: datetime time datetime timeparser Australia NSW holiday
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: Implementation :: CPython

PyTimeNSW
=========

PyTimeNSW is a fork of `PyTime <https://github.com/shnode/PyTime>`__
with additional days added for NSW public holidays.

Installation
------------

.. code:: python

    pip install pytimeNSW

To Do List
----------

1. Add family\_day public holiday for Canberra
2. Add is\_public\_can and public\_holidays\_can functions for Canberra
3. Add is\_weekend function takes string or datimeTime and returns
   Boolean
4. Add 'Monday rollover' for public holidays that land on a weekend
5. Add days\_until that accepts public holiday name as argument and
   returns int
6. Change is\_public to work for python2 list comprehensions ## Basic
   Usage

.. code:: python

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

.. code:: python

    >>>pytimeNSW.boxing()                      # Boxing Day
    datetime.date(2015, 12, 26)
    >>>
    >>>pytimekr.anzac()                    # Anzac Day
    datetime.date(2017, 4, 25)
    >>>
    >>>pytimeNSW.australia()                # Australia Day
    datetime.date(2017, 1, 26)
    >>>pytimeNSW.public_holidays(1995)                # List of public holidays in given year
    [datetime.date(1995, 4, 25),
     datetime.date(1995, 1, 26),
     datetime.date(1995, 4, 14),
     datetime.date(1995, 4, 15),
     datetime.date(1995, 4, 16),
     datetime.date(1995, 4, 17),
     datetime.date(1995, 1, 1),
     datetime.date(1995, 12, 25),
     datetime.date(1995, 12, 26),
     datetime.date(1995, 6, 12),
     datetime.date(1995, 10, 2)]
    >>>pytimeNSW.ispublic('April 25 2015')                # Verifies if a date is a public holiday
    True

License
-------

MIT


