dumpCalendar(calendar); calendar.setTimeZone(TimeZone.getTimeZone("GMT")); System.out.println("GMT Time"); dumpCalendar(calendar); } catch (Exception ex) { System.err.println("Exception using timezone GMT: " + ex); calendar.setTimeZone(TimeZone.getTimeZone("GMT-06:00")); System.out.println("GMT Time-06:00"); dumpCalendar(calendar); } catch (Exception ex) { System.err.println("Exception using timezone GMT: " + ex); calendar.setTimeZone(TimeZone.getTimeZone("GMT-06:10")); System.out.println("GMT Time-06:10"); dumpCalendar(calendar); } catch (Exception ex) { System.err.println("Exception using timezone GMT: " + ex); calendar.set(Calendar.YEAR, 10012); System.out.println("GMT Time in 10012"); dumpCalendar(calendar); } catch (Exception ex) { System.err.println("Exception setting year to 10012 " + ex); calendar.set(Calendar.YEAR, 1812); System.out.println("GMT Time in 1812"); dumpCalendar(calendar);
dumpCalendar(calendar); calendar.setTimeZone(TimeZone.getTimeZone("GMT")); System.out.println("GMT Time"); dumpCalendar(calendar); } catch (Exception ex) { System.err.println("Exception using timezone GMT: " + ex); calendar.setTimeZone(TimeZone.getTimeZone("GMT-06:00")); System.out.println("GMT Time-06:00"); dumpCalendar(calendar); } catch (Exception ex) { System.err.println("Exception using timezone GMT: " + ex); calendar.setTimeZone(TimeZone.getTimeZone("GMT-06:10")); System.out.println("GMT Time-06:10"); dumpCalendar(calendar); } catch (Exception ex) { System.err.println("Exception using timezone GMT: " + ex); calendar.set(Calendar.YEAR, 10012); System.out.println("GMT Time in 10012"); dumpCalendar(calendar); } catch (Exception ex) { System.err.println("Exception setting year to 10012 " + ex); calendar.set(Calendar.YEAR, 1812); System.out.println("GMT Time in 1812"); dumpCalendar(calendar);