List of usage examples for org.joda.time Period toDurationTo
public Duration toDurationTo(ReadableInstant endInstant)
From source file:com.jbirdvegas.mgerrit.search.AgeSearch.java
License:Apache License
protected static Instant getInstantFromPeriod(Period period) { Instant now = new Instant(); Duration duration = period.toDurationTo(now); return now.minus(duration); }