Beispiel #1
0
 public void setTimeZone(String tz) {
   if (tz.length() == 3) tz = tz.toUpperCase();
   _tz = TimeZone.getTimeZone(tz);
   if (!_tz.getID().equals(tz)) throw new RuntimeException("can't find time zone[" + tz + "]");
 }