jdk/src/java.base/share/classes/java/util/Date.java
changeset 32649 2ee9017c7597
parent 29614 c95b4a5f89d6
child 40457 21ae06f40614
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
   611             return cal.getTime(udate) + tzoffset * (60 * 1000);
   611             return cal.getTime(udate) + tzoffset * (60 * 1000);
   612         }
   612         }
   613         // syntax error
   613         // syntax error
   614         throw new IllegalArgumentException();
   614         throw new IllegalArgumentException();
   615     }
   615     }
   616     private final static String wtb[] = {
   616     private static final String wtb[] = {
   617         "am", "pm",
   617         "am", "pm",
   618         "monday", "tuesday", "wednesday", "thursday", "friday",
   618         "monday", "tuesday", "wednesday", "thursday", "friday",
   619         "saturday", "sunday",
   619         "saturday", "sunday",
   620         "january", "february", "march", "april", "may", "june",
   620         "january", "february", "march", "april", "may", "june",
   621         "july", "august", "september", "october", "november", "december",
   621         "july", "august", "september", "october", "november", "december",
   622         "gmt", "ut", "utc", "est", "edt", "cst", "cdt",
   622         "gmt", "ut", "utc", "est", "edt", "cst", "cdt",
   623         "mst", "mdt", "pst", "pdt"
   623         "mst", "mdt", "pst", "pdt"
   624     };
   624     };
   625     private final static int ttb[] = {
   625     private static final int ttb[] = {
   626         14, 1, 0, 0, 0, 0, 0, 0, 0,
   626         14, 1, 0, 0, 0, 0, 0, 0, 0,
   627         2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
   627         2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
   628         10000 + 0, 10000 + 0, 10000 + 0,    // GMT/UT/UTC
   628         10000 + 0, 10000 + 0, 10000 + 0,    // GMT/UT/UTC
   629         10000 + 5 * 60, 10000 + 4 * 60,     // EST/EDT
   629         10000 + 5 * 60, 10000 + 4 * 60,     // EST/EDT
   630         10000 + 6 * 60, 10000 + 5 * 60,     // CST/CDT
   630         10000 + 6 * 60, 10000 + 5 * 60,     // CST/CDT
  1298             return jcal;
  1298             return jcal;
  1299         }
  1299         }
  1300         return gcal;
  1300         return gcal;
  1301     }
  1301     }
  1302 
  1302 
  1303     synchronized private static final BaseCalendar getJulianCalendar() {
  1303     private static final synchronized BaseCalendar getJulianCalendar() {
  1304         if (jcal == null) {
  1304         if (jcal == null) {
  1305             jcal = (BaseCalendar) CalendarSystem.forName("julian");
  1305             jcal = (BaseCalendar) CalendarSystem.forName("julian");
  1306         }
  1306         }
  1307         return jcal;
  1307         return jcal;
  1308     }
  1308     }