Skip to content

Instantly share code, notes, and snippets.

@sankars
Created April 15, 2014 07:44
Show Gist options
  • Select an option

  • Save sankars/10711218 to your computer and use it in GitHub Desktop.

Select an option

Save sankars/10711218 to your computer and use it in GitHub Desktop.
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