/** * Returns the abbreviated 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 * @param int $length * the length of abbreviation * * @return string the abbreviated name of the day of the week * * @access public * @static * * @see Calc::getWeekdayFullname() */ static function getWeekdayAbbrname($day = 0, $month = 0, $year = 0, $length = 3) { if (empty($year)) { $year = Calc::dateNow('%Y'); } if (empty($month)) { $month = Calc::dateNow('%m'); } if (empty($day)) { $day = Calc::dateNow('%d'); } return substr(Calc::getWeekdayFullname($day, $month, $year), 0, $length); }