Method | Description | |
---|---|---|
allSaintsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
All Saints' Day. | |
annunciation ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Annunciation. | |
ascensionDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Ascension Day. | |
ashWednesday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Ash Wednesday. | |
assumptionOfMary ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Day of the Assumption of Mary. | |
calculateOrthodoxEaster ( integer $year, string $timezone ) : Datetime | Calculate the Easter date for Orthodox churches. | |
christmasDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Christmas Day. | |
christmasEve ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_OBSERVANCE ) : |
Christmas Eve. | |
corpusChristi ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_OTHER ) : |
Corpus Christi. | |
easter ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Easter. | |
easterMonday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Easter Monday. | |
epiphany ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Epiphany. | |
goodFriday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Good Friday. | |
immaculateConception ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Immaculate Conception. | |
maundyThursday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Maundy Thursday. | |
pentecost ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Pentecost (Whitsunday). | |
pentecostMonday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Pentecost (Whitmonday). | |
secondChristmasDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
Second Christmas Day / Boxing Day. | |
stGeorgesDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
St. George's Day. | |
stJohnsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
St. John's Day. | |
stJosephsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
St. Joseph's Day. | |
stStephensDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
St. Stephen's Day. |
Method | Description | |
---|---|---|
calculateEaster ( integer $year, string $timezone ) : DateTime | Calculates the date for Easter. |
public allSaintsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which All Saints' Day need to be created |
$timezone | string | the timezone in which All Saints' Day is celebrated |
$locale | string | the locale for which All Saints' Day need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public annunciation ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which the Annunciation needs to be created |
$timezone | string | the timezone in which the Annunciation is celebrated |
$locale | string | the locale for which the Annunciation need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public ascensionDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which Ascension need to be created |
$timezone | string | the timezone in which Ascension is celebrated |
$locale | string | the locale for which Ascension need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public ashWednesday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which Ash Wednesday need to be created |
$timezone | string | the timezone in which Ash Wednesday is celebrated |
$locale | string | the locale for which Ash Wednesday need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public assumptionOfMary ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which the day of the Assumption of Mary need to be created |
$timezone | string | the timezone in which the day of the Assumption of Mary is celebrated |
$locale | string | the locale for which the day of the Assumption of Mary need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
protected calculateEaster ( integer $year, string $timezone ) : DateTime | ||
$year | integer | the year for which Easter needs to be calculated |
$timezone | string | the timezone in which Easter is celebrated |
return | DateTime | date of Easter |
public calculateOrthodoxEaster ( integer $year, string $timezone ) : Datetime | ||
$year | integer | the year for which Easter needs to be calculated |
$timezone | string | the timezone in which Easter is celebrated |
return | Datetime | date of Orthodox Easter |
public christmasDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which Christmas Day need to be created |
$timezone | string | the timezone in which Christmas Day is celebrated |
$locale | string | the locale for which Christmas Day need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public christmasEve ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_OBSERVANCE ) : |
||
$year | integer | the year for which Christmas Eve needs to be created |
$timezone | string | the timezone in which Christmas Eve is celebrated |
$locale | string | the locale for which Christmas Eve need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default observance is considered. |
return |
public corpusChristi ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_OTHER ) : |
||
$year | integer | the year for which Corpus Christi need to be created |
$timezone | string | the timezone in which Corpus Christi is celebrated |
$locale | string | the locale for which Corpus Christi need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a type of 'other' is considered. |
return |
public easter ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which Easter need to be created |
$timezone | string | the timezone in which Easter is celebrated |
$locale | string | the locale for which Easter need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public easterMonday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which Easter Monday need to be created |
$timezone | string | the timezone in which Easter Monday is celebrated |
$locale | string | the locale for which Easter Monday need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public epiphany ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which Epiphany need to be created |
$timezone | string | the timezone in which Epiphany is celebrated |
$locale | string | the locale for which Epiphany need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public goodFriday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which Good Friday need to be created |
$timezone | string | the timezone in which Good Friday is celebrated |
$locale | string | the locale for which Good Friday need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public immaculateConception ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which Immaculate Conception need to be created |
$timezone | string | the timezone in which Immaculate Conception is celebrated |
$locale | string | the locale for which Immaculate Conception need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public maundyThursday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which Maundy Thursday need to be created |
$timezone | string | the timezone in which Maundy Thursday is celebrated |
$locale | string | the locale for which Maundy Thursday need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public pentecost ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which Pentecost need to be created |
$timezone | string | the timezone in which Pentecost is celebrated |
$locale | string | the locale for which Pentecost need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public pentecostMonday ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which Pentecost (Whitmonday) need to be created |
$timezone | string | the timezone in which Pentecost (Whitmonday) is celebrated |
$locale | string | the locale for which Pentecost (Whitmonday) need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public secondChristmasDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which the Second Christmas Day / Boxing Day need to be created |
$timezone | string | the timezone in which the Second Christmas Day / Boxing Day is celebrated |
$locale | string | the locale for which the Second Christmas Day / Boxing Day need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public stGeorgesDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which St. George's Day need to be created |
$timezone | string | the timezone in which St. George's Day is celebrated |
$locale | string | the locale for which St. George's Day need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public stJohnsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which St. John's Day need to be created |
$timezone | string | the timezone in which St. John's Day is celebrated |
$locale | string | the locale for which St. John's Day need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public stJosephsDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which St. Joseph's Day need to be created |
$timezone | string | the timezone in which St. Joseph's Day is celebrated |
$locale | string | the locale for which St. Joseph's Day need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |
public stStephensDay ( integer $year, string $timezone, string $locale, string $type = Holiday::TYPE_NATIONAL ) : |
||
$year | integer | the year for which St. Stephen's Day need to be created |
$timezone | string | the timezone in which St. Stephen's Day is celebrated |
$locale | string | the locale for which St. Stephen's Day need to be displayed in. |
$type | string | The type of holiday. Use the following constants: TYPE_NATIONAL, TYPE_OBSERVANCE, TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default a national holiday is considered. |
return |