CalendarYear constructor

CalendarYear(
  1. int year
)

Constructs an instance for year.

Implementation

CalendarYear(int year)
    : _year = year,
      super(TimeInstant.dateTime(DateTime(year, 1)),
          TimeInstant.dateTime(DateTime(year + 1)));