Answers for "how to get duration in millisecond java"

2

java cast duration to long

Duration d = Duration.ofHours(1); 	// 1 hour with java.time
long millis = d.toMillis();			// 1 hour in milliseconds
Posted by: Guest on March-20-2020

Code answers related to "how to get duration in millisecond java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language