Duration toMillisPart() method in Java with Examples
The toMillisPart() method of Duration Class in java.time package is used get the value of this duration in number of milli-seconds by dividing the number of nanoseconds by 1, 000, 000. Syntax: public long toMillisPart() Parameters: This method do not accepts any parameter. Return Value: This method