Created
April 15, 2014 07:44
-
-
Save sankars/10711218 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| public class Joda implements Directions | |
| { | |
| public static void main(String [] args) | |
| { | |
| // From http://stackoverflow.com/questions/1555262/calculating-the-difference-between-two-java-date-instances | |
| Interval interval = new Interval(oldTime, new Instant()); | |
| Days d = Days.daysBetween(startDate, endDate); | |
| int days = d.getDays(); | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment