Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

date minus date java

// import java.time.*;
Instant start = Instant.now();
// do something
Instant end = Instant.now();
System.out.println("Duration in ms: " + Duration.between(start, end).toMillis());
 
PREVIOUS NEXT
Tagged: #date #date #java
ADD COMMENT
Topic
Name
2+9 =