Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java cast duration to long

Duration d = Duration.ofHours(1); 	// 1 hour with java.time
long millis = d.toMillis();			// 1 hour in milliseconds
 
PREVIOUS NEXT
Tagged: #java #cast #duration #long
ADD COMMENT
Topic
Name
8+5 =