예제 #1
0
 public static IntervalOfTime yearToDate() {
   PointInTime now = PointInTime.now();
   return new IntervalOfTime(new PointInTime(now.getYear()), now);
 }
예제 #2
0
 public static IntervalOfTime thisYear() {
   PointInTime today = PointInTime.today();
   return new PointInTime(today.getYear()).promote();
 }