Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

date difference in minutes java

long diff = d2.getTime() - d1.getTime();//as given

long seconds = TimeUnit.MILLISECONDS.toSeconds(diff);
long minutes = TimeUnit.MILLISECONDS.toMinutes(diff);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #date #difference #minutes #java
ADD COMMENT
Topic
Name
2+2 =