示例#1
0
 public static IntervalOfTime untilNow(ReadablePeriod p) {
   PointInTime now = PointInTime.now();
   return new IntervalOfTime(now.subtract(p), now, true, true);
 }
示例#2
0
 public static IntervalOfTime forTheNext(ReadablePeriod p) {
   PointInTime now = PointInTime.now();
   return new IntervalOfTime(now, now.add(p), true, true);
 }
示例#3
0
 public static IntervalOfTime since(PointInTime t) {
   return new IntervalOfTime(t, PointInTime.now(), true, true);
 }
示例#4
0
 public static IntervalOfTime yearToDate() {
   PointInTime now = PointInTime.now();
   return new IntervalOfTime(new PointInTime(now.getYear()), now);
 }