src/Duration.php
public function getTotalMillis() : int
    {
        $millis = $this->seconds * 1000;
        $millis += \intdiv($this->nanos, 1000000);

        return $millis;
    }
public function getTotalMillis() : int
    {
        $millis = $this->seconds * 1000;
        $millis += \intdiv($this->nanos, 1000000);

        return $millis;
    }
public function getTotalMillis ( ) : int { $ millis = $ this -> seconds * 1000 ; $ millis += \ intdiv ( $ this -> nanos , 1000000 ) ; return $ millis ; }
Returns the total number of milliseconds in this Duration.

The result is rounded towards negative infinity.

@return int
Returns the total number of milliseconds in this Duration .