src/share/classes/java/util/GregorianCalendar.java

Print this page




  28  * (C) Copyright IBM Corp. 1996-1998 - All Rights Reserved
  29  *
  30  *   The original version of this source code and documentation is copyrighted
  31  * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
  32  * materials are provided under terms of a License Agreement between Taligent
  33  * and Sun. This technology is protected by multiple US and International
  34  * patents. This notice and attribution to Taligent may not be removed.
  35  *   Taligent is a registered trademark of Taligent, Inc.
  36  *
  37  */
  38 
  39 package java.util;
  40 
  41 import java.io.IOException;
  42 import java.io.ObjectInputStream;
  43 import java.time.Instant;
  44 import java.time.ZoneId;
  45 import java.time.ZonedDateTime;
  46 import java.time.chrono.IsoChronology;
  47 import java.time.temporal.ChronoField;
  48 import java.time.temporal.Queries;
  49 import sun.util.calendar.BaseCalendar;
  50 import sun.util.calendar.CalendarDate;
  51 import sun.util.calendar.CalendarSystem;
  52 import sun.util.calendar.CalendarUtils;
  53 import sun.util.calendar.Era;
  54 import sun.util.calendar.Gregorian;
  55 import sun.util.calendar.JulianCalendar;
  56 import sun.util.calendar.ZoneInfo;
  57 
  58 /**
  59  * <code>GregorianCalendar</code> is a concrete subclass of
  60  * <code>Calendar</code> and provides the standard calendar system
  61  * used by most of the world.
  62  *
  63  * <p> <code>GregorianCalendar</code> is a hybrid calendar that
  64  * supports both the Julian and Gregorian calendar systems with the
  65  * support of a single discontinuity, which corresponds by default to
  66  * the Gregorian date when the Gregorian calendar was instituted
  67  * (October 15, 1582 in some countries, later in others).  The cutover
  68  * date may be changed by the caller by calling {@link




  28  * (C) Copyright IBM Corp. 1996-1998 - All Rights Reserved
  29  *
  30  *   The original version of this source code and documentation is copyrighted
  31  * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
  32  * materials are provided under terms of a License Agreement between Taligent
  33  * and Sun. This technology is protected by multiple US and International
  34  * patents. This notice and attribution to Taligent may not be removed.
  35  *   Taligent is a registered trademark of Taligent, Inc.
  36  *
  37  */
  38 
  39 package java.util;
  40 
  41 import java.io.IOException;
  42 import java.io.ObjectInputStream;
  43 import java.time.Instant;
  44 import java.time.ZoneId;
  45 import java.time.ZonedDateTime;
  46 import java.time.chrono.IsoChronology;
  47 import java.time.temporal.ChronoField;
  48 import java.time.temporal.TemporalQuery;
  49 import sun.util.calendar.BaseCalendar;
  50 import sun.util.calendar.CalendarDate;
  51 import sun.util.calendar.CalendarSystem;
  52 import sun.util.calendar.CalendarUtils;
  53 import sun.util.calendar.Era;
  54 import sun.util.calendar.Gregorian;
  55 import sun.util.calendar.JulianCalendar;
  56 import sun.util.calendar.ZoneInfo;
  57 
  58 /**
  59  * <code>GregorianCalendar</code> is a concrete subclass of
  60  * <code>Calendar</code> and provides the standard calendar system
  61  * used by most of the world.
  62  *
  63  * <p> <code>GregorianCalendar</code> is a hybrid calendar that
  64  * supports both the Julian and Gregorian calendar systems with the
  65  * support of a single discontinuity, which corresponds by default to
  66  * the Gregorian date when the Gregorian calendar was instituted
  67  * (October 15, 1582 in some countries, later in others).  The cutover
  68  * date may be changed by the caller by calling {@link