diff --git a/java_datastamp2date/datetime.java b/java_datastamp2date/datetime.java index 512b5b5..d521e13 100644 --- a/java_datastamp2date/datetime.java +++ b/java_datastamp2date/datetime.java @@ -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;