Example #1
0
 public static IntervalOfTime thisYear() {
   PointInTime today = PointInTime.today();
   return new PointInTime(today.getYear()).promote();
 }
Example #2
0
 public static IntervalOfTime untilToday(ReadablePeriod p) {
   PointInTime today = PointInTime.today();
   return new IntervalOfTime(today.subtract(p), today, true, true);
 }
Example #3
0
 public static IntervalOfTime today() {
   return PointInTime.today().promote();
 }