コード例 #1
0
ファイル: Dates.php プロジェクト: procivam/hochu-bilet-v3
 /**
  * Number of minutes in an hour, incrementing by a step. Typically used as
  * a shortcut for generating a list that can be used in a form.
  *
  *     $minutes = Dates::minutes(); // 05, 10, 15, ..., 50, 55, 60
  *
  * @uses    Dates::seconds
  * @param   integer $step   amount to increment each step by, 1 to 30
  * @return  array   A mirrored (foo => foo) array from 1-60.
  */
 public static function minutes($step = 5)
 {
     // Because there are the same number of minutes as seconds in this set,
     // we choose to re-use seconds(), rather than creating an entirely new
     // function. Shhhh, it's cheating! ;) There are several more of these
     // in the following methods.
     return Dates::seconds($step);
 }