选择语言 :

 Core_Date::minutes

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 = Date::minutes(); // 05, 10, 15, ..., 50, 55, 60

array Core_Date::minutes( [ integer $step = integer 5 ] )
uses
Date::seconds

参数列表

参数 类型 描述 默认值
$step integer Amount to increment each step by, 1 to 30 integer 5
返回值
  • array A mirrored (foo => foo) array from 1-60.
File: ./core/classes/date.class.php
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 Date::seconds($step);
}