oneQuarter=newGregorianCalendar(year,month,date);
oneYear=newGregorianCalendar(year,month,date);
oneDay.add(GregorianCalendar.DATE,1);
oneWeek.add(GregorianCalendar.DATE,7);
oneMonth.add(GregorianCalendar.MONTH,1);
oneQuarter.add(GregorianCalendar.MONTH,3);
oneYear.add(GregorianCalendar.YEAR,1);
}
ReviewDates(){
this(newGregorianCalendar());
}
publicvoidlistDates(){
DateFormatdf=DateFormat.getDateInstance(DateFormat.LONG);
DatestartDate=firstDay.getTime();
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/