Created
July 26, 2012 18:15
-
-
Save sangramanand/3183604 to your computer and use it in GitHub Desktop.
Java Time difference using JODA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java Time difference using JODA | |
DateTime beforeCall = new DateTime(); | |
Map<String, Map<String, String>> info = Maps.newHashMap(); | |
Interval interval = new Interval(beforeCall, new Instant()); | |
System.out.println("new call difference = "+interval.toDurationMillis()); | |
DateTime beforeCall1 = new DateTime(); | |
allAdmins = adminDAO.getAll(); | |
Interval interval1 = new Interval(beforeCall1, new Instant()); | |
System.out.println("old call difference = "+interval1.toDurationMillis()); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment