Duration.toMillis

Converts this duration to the total length _in milliseconds. !(p) If this duration is too large to fit _in a {@code long} milliseconds, then an exception is thrown. !(p) If this duration has greater than millisecond precision, then the conversion will drop any excess precision information as though the amount _in nanoseconds was subject to integer division by one million.

@return the total length of the duration _in milliseconds @throws ArithmeticException if numeric overflow occurs

class Duration
long
toMillis
()

Meta