File/holiday-defs.php

Description
Classes
Class Description
 class holidays A class to handle a list of public holidays. It allows you to add holidays in various ways, and also to query whether a particular date-time falls on a holiday.
Includes
 include_once ("datetime-defs.php") (line 28)
Functions
get_easter_holidays (line 191)

Get the days of Easter for the given year (defaults to current year)

as an associative array of values, with the following arrangement: returned_array['Good Friday'] = timestamp of Good Friday returned_array['Easter Saturday'] = timestamp of Easter Saturday returned_array['Easter Sunday'] = timestamp of Easter Sunday returned_array['Easter Monday'] = timestamp of Easter Monday

void get_easter_holidays ([mixed $year = ""])
get_nth_day_of_month (line 157)

Return the timestamp of the date for the Nth dayname in the given month. Returns -1 if error encountered.

  • return: Timestamp of date, or -1 if error.
integer get_nth_day_of_month (string $monthname, string $dayabbrev, integer $n, [integer $year = ""])
  • string $monthname: Month the day should be in
  • string $dayabbrev: The 3-char abbrev: Eg. "Mon", "Tue", ..
  • integer $n: If you want the 4th day, then this would be 4
  • integer $year: Optional year, otherwise current year
is_same_day (line 138)

Return true if the two timestamps are on the same day of the calendar.

  • return: True if timestamps lie on the very same day.
boolean is_same_day (mixed $ts1, mixed $ts2)

Documentation generated by phpDocumentor 1.3.0RC3