lib/Util/TimeUnit.php
public function format(float $time, string $unit = null, string $mode = null, int $precision = null, bool $suffix = true)
    {
        $value = number_format($this->toDestUnit($time, $unit, $mode), $precision !== null ? $precision : $this->precision);

        if (false === $suffix) {
            return $value;
        }

        $suffix = $this->getDestSuffix($unit, $mode);

        return $value . $suffix;
    }
public function format(float $time, string $unit = null, string $mode = null, int $precision = null, bool $suffix = true)
    {
        $value = number_format($this->toDestUnit($time, $unit, $mode), $precision !== null ? $precision : $this->precision);

        if (false === $suffix) {
            return $value;
        }

        $suffix = $this->getDestSuffix($unit, $mode);

        return $value . $suffix;
    }
public function format ( float $ time , string $ unit = null , string $ mode = null , int $ precision = null , bool $ suffix = true ) { $ value = number_format ( $ this -> toDestUnit ( $ time , $ unit , $ mode ) , $ precision !== null ? $ precision : $ this -> precision ) ; if ( false === $ suffix ) { return $ value ; } $ suffix = $ this -> getDestSuffix ( $ unit , $ mode ) ; return $ value . $ suffix ; }
Return a human readable representation of the unit including the suffix.
Return a human readable representation of the unit including the suffix .