/** * Returns the full weekday name for the given date * * @param int $day * the day of the month, default is current local day * @param int $month * the month, default is current local month * @param int $year * the year in four digit format, default is current local year * * @return string the full name of the day of the week * * @access public * @static * */ static function getWeekdayFullname($day = 0, $month = 0, $year = 0) { if (empty($year)) { $year = Calc::dateNow('%Y'); } if (empty($month)) { $month = Calc::dateNow('%m'); } if (empty($day)) { $day = Calc::dateNow('%d'); } $weekday_names = Calc::getWeekDays(); $weekday = Calc::dayOfWeek($day, $month, $year); return $weekday_names[$weekday]; }