src/util/Date.php
public static function seconds($step = 1, $start = 0, $end = 60) {
        // Always integer
        $step = (int)$step;

        $seconds = array();
        for ($i = $start; $i < $end; $i += $step) {
            $seconds[$i] = sprintf('%02d', $i);
        }

        return $seconds;
    }
public static function seconds($step = 1, $start = 0, $end = 60) {
        // Always integer
        $step = (int)$step;

        $seconds = array();
        for ($i = $start; $i < $end; $i += $step) {
            $seconds[$i] = sprintf('%02d', $i);
        }

        return $seconds;
    }
public static function seconds ( $ step = 1 , $ start = 0 , $ end = 60 ) { // Always integer $ step = ( int ) $ step ; $ seconds = array ( ) ; for ( $ i = $ start ; $ i < $ end ; $ i += $ step ) { $ seconds [ $ i ] = sprintf ( '%02d' , $ i ) ; } return $ seconds ; }
Number of seconds in a minute, incrementing by a step. Typically used as
a shortcut for generating a list that can used in a form.

$seconds = Date::seconds(); // 01, 02, 03, ..., 58, 59, 60

@param   integer $step amount to increment each step by, 1 to 30
@param   integer $start start value
@param   integer $end end value
@return  array   A mirrored (foo => foo) array from 1-60.
Number of seconds in a minute incrementing by a step . Typically used as a shortcut for generating a list that can used in a form .