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