lib/Util/TimeUnit.php
public static function convert(float $time, string $unit, string $destUnit, string $mode)
    {
        self::validateMode($mode);

        if ($mode === self::MODE_TIME) {
            return self::convertTo($time, $unit, $destUnit);
        }

        return self::convertInto($time, $unit, $destUnit);
    }
public static function convert(float $time, string $unit, string $destUnit, string $mode)
    {
        self::validateMode($mode);

        if ($mode === self::MODE_TIME) {
            return self::convertTo($time, $unit, $destUnit);
        }

        return self::convertInto($time, $unit, $destUnit);
    }
public static function convert ( float $ time , string $ unit , string $ destUnit , string $ mode ) { self :: validateMode ( $ mode ) ; if ( $ mode === self :: MODE_TIME ) { return self :: convertTo ( $ time , $ unit , $ destUnit ) ; } return self :: convertInto ( $ time , $ unit , $ destUnit ) ; }
Convert given time in given unit to given destination unit in given mode.
Convert given time in given unit to given destination unit in given mode .