src/ConcurrentPhpUtils/TimeUnit.php
public function toMillis($d)
    {
        $v = $this->getValue();
        if ($v < self::MILLISECONDS) {
            return $d/($this->c2/$this->{'c'.$v});
        } else {
            return $this->x($d, $this->{'c'.$v}/$this->c2, PHP_INT_MAX/($this->{'c'.$v}/$this->c2));
        }
    }
public function toMillis($d)
    {
        $v = $this->getValue();
        if ($v < self::MILLISECONDS) {
            return $d/($this->c2/$this->{'c'.$v});
        } else {
            return $this->x($d, $this->{'c'.$v}/$this->c2, PHP_INT_MAX/($this->{'c'.$v}/$this->c2));
        }
    }
public function toMillis ( $ d ) { $ v = $ this -> getValue ( ) ; if ( $ v < self :: MILLISECONDS ) { return $ d / ( $ this -> c2 / $ this -> { 'c' . $ v } ) ; } else { return $ this -> x ( $ d , $ this -> { 'c' . $ v } / $ this -> c2 , PHP_INT_MAX / ( $ this -> { 'c' . $ v } / $ this -> c2 ) ) ; } }
Convert to millies

@param int $d
@return float|int
Convert to millies