예제 #1
0
파일: Calc.php 프로젝트: ulrikkold/cal
 /**
  * Returns the abbreviated month name for the given month
  *
  * @param int $month
  *        	the month
  * @param int $length
  *        	the length of abbreviation
  *        	
  * @return string the abbreviated name of the month
  *        
  * @access public
  * @static
  *
  * @see Calc::getMonthFullname
  */
 static function getMonthAbbrname($month, $length = 3)
 {
     $month = (int) $month;
     if (empty($month)) {
         $month = Calc::dateNow('%m');
     }
     return substr(Calc::getMonthFullname($month), 0, $length);
 }