PHP Class Yasumi\Provider\NewZealand

Inheritance: extends AbstractProvider, use trait CommonHolidays, use trait ChristianHolidays
ファイルを表示 Open project: azuyalabs/yasumi

Public Methods

Method Description
calculateAnzacDay ( ) ANZAC Day.
calculateChristmasHolidays ( ) Christmas Day / Boxing Day.
calculateLabourDay ( ) During the 19th century, workers in New Zealand tried to claim the right for an 8-hour working day.
calculateNewYearHolidays ( ) Holidays associated with the start of the modern Gregorian calendar.
calculateQueensBirthday ( ) Queens Birthday.
calculateWaitangiDay ( ) Waitangi Day.
initialize ( ) Initialize holidays for New Zealand.

Method Details

calculateAnzacDay() public method

Anzac Day is a national day of remembrance in Australia and New Zealand that broadly commemorates all Australians and New Zealanders "who served and died in all wars, conflicts, and peacekeeping operations" Observed on 25 April each year.
public calculateAnzacDay ( )

calculateChristmasHolidays() public method

Christmas day, and Boxing day are public holidays in New Zealand, they are subject to mondayisation rules.

calculateLabourDay() public method

In 1840 carpenter Samuel Parnell fought for this right in Wellington, NZ, and won. Labour Day was first celebrated in New Zealand on October 28, 1890, when thousands of workers paraded in the main city centres. Government employees were given the day off to attend the parades and many businesses closed for at least part of the day. The first official Labour Day public holiday in New Zealand was celebrated on the second Wednesday in October in 1900. The holiday was moved to the fourth Monday of October in 1910 has remained on this date since then.
public calculateLabourDay ( )

calculateNewYearHolidays() public method

New Zealanders celebrate New Years Day and The Day After New Years Day, if either of these holidays occur on a weekend, the dates need to be adjusted.

calculateQueensBirthday() public method

The official head of state of New Zealand is the Monarch of the Commonwealth Realms. The monarch's birthday is officially celebrated in many parts of New Zealand. On her accession in 1952 Queen Elizabeth II was proclaimed in New Zealand ‘Queen of this Realm and all her other Realms’. Her representative in New Zealand, the governor general, has symbolic and ceremonial roles and is not involved in the day-to-day running of the government, which is the domain of the prime minister. Her actual birthday is on April 21, but it's celebrated as a public holiday on the first Monday of June.

calculateWaitangiDay() public method

Waitangi Day (named after Waitangi, where the Treaty of Waitangi was first signed) commemorates a significant day in the history of New Zealand. It is observed as a public holiday each year on 6 February to celebrate the signing of the Treaty of Waitangi, New Zealand's founding document, on that date in 1840. In recent legislation, if 6 February falls on a Saturday or Sunday, the Monday that immediately follows becomes a public holiday.

initialize() public method

Initialize holidays for New Zealand.
public initialize ( )