Example #1
0
 /**
  * Return the name of the month at index.
  * 
  * @param integer $anInteger
  * @return string
  * @access public
  * @since 5/4/05
  * @static
  */
 static function nameOfMonth($anInteger)
 {
     $names = ChronologyConstants::MonthNames();
     if ($names[$anInteger]) {
         return $names[$anInteger];
     }
     $errorString = $anInteger . " is not a valid month index.";
     if (function_exists('throwError')) {
         throwError(new Error($errorString));
     } else {
         die($errorString);
     }
 }