예제 #1
0
파일: Calc.php 프로젝트: ulrikkold/cal
 /**
  * Returns date of the previous specific day of the week
  * on or before the given date
  *
  * @param int $dow
  *        	the day of the week (0 = Sunday)
  * @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 string $format
  *        	the string indicating how to format the output
  *        	
  * @return string the date in the desired format
  *        
  * @access public
  * @static
  *
  */
 static function prevDayOfWeekOnOrBefore($dow, $day = 0, $month = 0, $year = 0, $format = DATE_CALC_FORMAT)
 {
     return Calc::prevDayOfWeek($dow, $day, $month, $year, $format, true);
 }