protected static function parse_seconds($seconds) {
        foreach (self::get_units() as $unit => $unused) {
            if ($seconds % $unit === 0) {
                return array('v'=>(int)($seconds/$unit), 'u'=>$unit);
            }
        }
        return array('v'=>(int)$seconds, 'u'=>1);
    }
protected static function parse_seconds($seconds) {
        foreach (self::get_units() as $unit => $unused) {
            if ($seconds % $unit === 0) {
                return array('v'=>(int)($seconds/$unit), 'u'=>$unit);
            }
        }
        return array('v'=>(int)$seconds, 'u'=>1);
    }
protected static function parse_seconds ( $ seconds ) { foreach ( self :: get_units ( ) as $ unit => $ unused ) { if ( $ seconds % $ unit === 0 ) { return array ( 'v' => ( int ) ( $ seconds / $ unit ) , 'u' => $ unit ) ; } } return array ( 'v' => ( int ) $ seconds , 'u' => 1 ) ; }
Finds suitable units for given duration.
@static
@param int $seconds
@return array
Finds suitable units for given duration .