|
IntlCalendar::isWeekendWhether a certain date/time is in the weekend DescriptionObject oriented style
public bool IntlCalendar::isWeekend
([ float
$date = NULL
] )Procedural style
bool intlcal_is_weekend
( IntlCalendar
$cal
[, float $date = NULL
] )Returns whether either the obejctʼs current time or the provided timestamp occur during a weekend in this objectʼs calendar system. This function requires ICU 4.4 or later. Parameters
Return ValuesA bool indicating whether the given or this objectʼs time occurs in a weekend.
The value Examples
Example #1 IntlCalendar::isWeekend
<?php See Also
|