Duration.toMillisPart

Extracts the number of milliseconds part of the duration. !(p) This returns the milliseconds part by dividing the number of nanoseconds by 1,000,000. The length of the duration is stored using two fields - seconds and nanoseconds. The nanoseconds part is a value from 0 to 999,999,999 that is an adjustment to the length _in seconds. The total duration is defined by calling {@link #getNano()} and {@link #getSeconds()}. !(p) This instance is immutable and unaffected by this method call.

@return the number of milliseconds part of the duration. @since 9

class Duration
int
toMillisPart
()

Meta