remove useless class

This commit is contained in:
xw_y_am 2019-02-21 01:46:25 +08:00
parent d4e575352d
commit a4def7080e

View File

@ -1,35 +1,5 @@
package datetime;
class DaysOfYear {
int year;
int days;
public DaysOfYear(int year, int days) {
this.year = year;
this.days = days;
}
}
class DaysOf4Year {
int firstYear;
DaysOfYear[] doy;
void setYearAfter2000(boolean after2k) {
this.doy = new DaysOfYear[4];
this.doy[0] = new DaysOfYear(4, 1461);
this.doy[1] = new DaysOfYear(3, 1096);
if (after2k) {
this.firstYear = 2000;
this.doy[1] = new DaysOfYear(2, 731);
this.doy[1] = new DaysOfYear(1, 366);
} else {
this.firstYear = 1970;
this.doy[1] = new DaysOfYear(2, 730);
this.doy[1] = new DaysOfYear(1, 365);
}
}
}
class Datetime {
int year;
int month;