1 package org.collectionspace.services.structureddate;
4 * A deferred date that represents the start of a millennium. The start year
5 * can not be determined until the era of the millennium is known. Once the
6 * era is known, resolveDate() may be called to calculate the year.
8 public class DeferredMillenniumStartDate extends DeferredMillenniumDate {
10 public DeferredMillenniumStartDate(int millennium) {
15 public void resolveDate() {
19 era = Date.DEFAULT_ERA;
22 Date startDate = DateUtils.getMillenniumStartDate(millennium, era);
24 setYear(startDate.getYear());
25 setMonth(startDate.getMonth());
26 setDay(startDate.getDay());
27 setEra(startDate.getEra());