Esempio n. 1
0
 public static IntervalOfTime untilToday(ReadablePeriod p) {
   PointInTime today = PointInTime.today();
   return new IntervalOfTime(today.subtract(p), today, true, true);
 }
Esempio n. 2
0
 public static IntervalOfTime untilNow(ReadablePeriod p) {
   PointInTime now = PointInTime.now();
   return new IntervalOfTime(now.subtract(p), now, true, true);
 }