private static function MerciHours::weekDayName in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Returns the untranslated week day name for the requested date.
Parameters
$date DateObject or date string.:
3 calls to MerciHours::weekDayName()
- MerciHours::isClosedDay in merci_hours/
includes/ entity.inc - Returns boolean indicating wether the requested day the business is closed.
- MerciHours::isOpenDay in merci_hours/
includes/ entity.inc - Returns boolean indicating wether the requested day the business is open.
- MerciHours::weekDaysDates in merci_hours/
includes/ entity.inc - Returns dates in a period corresponding to requested week days.
File
- merci_hours/
includes/ entity.inc, line 88
Class
- MerciHours
- Define a WorkCalendar object with its operations.
Code
private static function weekDayName($date) {
$week_day = date_day_of_week($date);
$names = date_week_days_untranslated();
return $names[$week_day];
}