public static function ofMilliseconds(int $milliseconds) : Duration
    {
        $seconds = intdiv($milliseconds, LocalTime::MILLIS_PER_SECOND);
        $nanos = ($milliseconds % LocalTime::MILLIS_PER_SECOND) * (LocalTime::NANOS_PER_SECOND / LocalTime::MILLIS_PER_SECOND);

        return self::ofSeconds($seconds, $nanos);
    }