public static IntervalOfTime untilNow(ReadablePeriod p) { PointInTime now = PointInTime.now(); return new IntervalOfTime(now.subtract(p), now, true, true); }
public static IntervalOfTime forTheNext(ReadablePeriod p) { PointInTime now = PointInTime.now(); return new IntervalOfTime(now, now.add(p), true, true); }
public static IntervalOfTime since(PointInTime t) { return new IntervalOfTime(t, PointInTime.now(), true, true); }
public static IntervalOfTime yearToDate() { PointInTime now = PointInTime.now(); return new IntervalOfTime(new PointInTime(now.getYear()), now); }