Holidays
class Holidays
This class provides static functions about holidays and working days
Methods
Returns the list of fixed holidays of the given year for the given lang and country
Returns the list of moveable holidays of the given year for the given lang and country
Returns the list of holidays of the given year for the given lang and country
Details
at line 48
static int
workdays(DateTime $startDate, DateTime $endDate)
Returns the number of working days between two dates
at line 100
static DateTime
nextWorkingDay(DateTime $date)
Returns the working day following the given date
at line 118
static private array
fixedHolidays(int $year, string $lang = "en-US")
Returns the list of fixed holidays of the given year for the given lang and country
at line 149
static private array
moveableHolidays(int $year, string $lang = "en-US")
Returns the list of moveable holidays of the given year for the given lang and country
at line 177
static private array
holidays(int $year, string $lang = "en.US")
Returns the list of holidays of the given year for the given lang and country
at line 195
static private DateTime
easter(int $year)
Returns the easter day of the given year
at line 213
static private bool
isWorkingDay(DateTime $date)
Determines whether the given date is a working day