Ejemplo n.º 1
0
 public static IntervalOfTime yearToDate() {
   PointInTime now = PointInTime.now();
   return new IntervalOfTime(new PointInTime(now.getYear()), now);
 }
Ejemplo n.º 2
0
 public static IntervalOfTime thisYear() {
   PointInTime today = PointInTime.today();
   return new PointInTime(today.getYear()).promote();
 }