Home | History | Annotate | Download | only in util

Lines Matching defs:GregorianCalendar

57  * <code>GregorianCalendar</code> is a concrete subclass of
61 * <p> <code>GregorianCalendar</code> is a hybrid calendar that
72 * this correctly. Before the Gregorian cutover, <code>GregorianCalendar</code>
79 * <code>GregorianCalendar</code> implements <em>proleptic</em> Gregorian and
82 * <code>GregorianCalendar</code> may be used for all years to generate
84 * <code>GregorianCalendar</code> are historically accurate only from March 1, 4
112 * GregorianCalendar}. <a name="iso8601_compatible_setting">The week
160 * undefined. <code>GregorianCalendar</code> uses the following
164 * summary="GregorianCalendar default field values"
271 * // create a GregorianCalendar with the Pacific Daylight time zone
273 * Calendar calendar = new GregorianCalendar(pdt);
331 public class GregorianCalendar extends Calendar {
587 * Constructs a default <code>GregorianCalendar</code> using the current time
591 public GregorianCalendar() {
597 * Constructs a <code>GregorianCalendar</code> based on the current time
603 public GregorianCalendar(TimeZone zone) {
608 * Constructs a <code>GregorianCalendar</code> based on the current time
613 public GregorianCalendar(Locale aLocale) {
619 * Constructs a <code>GregorianCalendar</code> based on the current time
625 public GregorianCalendar(TimeZone zone, Locale aLocale) {
632 * Constructs a <code>GregorianCalendar</code> with the given date set
640 public GregorianCalendar(int year, int month, int dayOfMonth) {
645 * Constructs a <code>GregorianCalendar</code> with the given date
657 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay,
663 * Constructs a GregorianCalendar with the given date
677 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay,
683 * Constructs a <code>GregorianCalendar</code> with the given date
698 GregorianCalendar(int year, int month, int dayOfMonth,
731 * Constructs an empty GregorianCalendar.
737 GregorianCalendar(TimeZone zone, Locale locale, boolean flag) {
743 GregorianCalendar(long milliseconds) {
754 * Sets the <code>GregorianCalendar</code> change date. This is the point when the switch
812 * @return the Gregorian cutover date for this <code>GregorianCalendar</code> object.
862 * Compares this <code>GregorianCalendar</code> to the specified
864 * only if the argument is a <code>GregorianCalendar</code> object
877 return obj instanceof GregorianCalendar &&
879 gregorianCutover == ((GregorianCalendar)obj).gregorianCutover;
883 * Generates the hash code for this <code>GregorianCalendar</code> object.
1104 * <em>Example</em>: Consider a <code>GregorianCalendar</code>
1134 * <em>Example</em>: Consider a <code>GregorianCalendar</code>
1137 * <code>GregorianCalendar</code>, the <code>DAY_OF_MONTH</code> field cannot
1142 * <em>Example</em>: Consider a <code>GregorianCalendar</code>
1526 * <code>GregorianCalendar</code> instance. The minimum value is
1550 * <code>GregorianCalendar</code> instance. The maximum value is
1585 GregorianCalendar gc = (GregorianCalendar) clone();
1599 * of this <code>GregorianCalendar</code> instance. The highest
1629 * of this <code>GregorianCalendar</code> instance. The lowest
1657 GregorianCalendar gc = (GregorianCalendar) clone();
1679 * 1970 and the date of this <code>GregorianCalendar</code> is
1688 * this <code>GregorianCalendar</code>
1699 GregorianCalendar gc = getNormalizedCalendar();
1728 * WEEK_OF_YEAR} in the week year of this {@code GregorianCalendar}.
1732 * this <code>GregorianCalendar</code>
1749 GregorianCalendar gc = getNormalizedCalendar();
1846 gc = (GregorianCalendar) gc.clone();
1886 gc = (GregorianCalendar) gc.clone();
1909 // Let a cloned GregorianCalendar take care of the cutover cases.
1911 gc = (GregorianCalendar) clone();
1948 gc = (GregorianCalendar) clone();
2012 GregorianCalendar other = (GregorianCalendar) super.clone();
2049 * Returns {@code true} indicating this {@code GregorianCalendar}
2065 * {@code GregorianCalendar}. The dates in the weeks between 1 and the
2073 * @return the week year represented by this {@code GregorianCalendar}.
2114 // cloning this GregorianCalendar.
2120 GregorianCalendar cal = (GregorianCalendar) clone();
2168 * Sets this {@code GregorianCalendar} to the date given by the
2201 * @see GregorianCalendar#isWeekDateSupported()
2214 GregorianCalendar gc = (GregorianCalendar) clone();
2254 * represented by this {@code GregorianCalendar}.
2256 * <p>For example, if this {@code GregorianCalendar}'s date is
2271 GregorianCalendar gc = getNormalizedCalendar();
2279 gc = (GregorianCalendar) gc.clone();
2522 // GregorianCalendar.
3138 private GregorianCalendar getNormalizedCalendar() {
3139 GregorianCalendar gc;
3144 gc = (GregorianCalendar) this.clone();
3357 GregorianCalendar gc = getNormalizedCalendar();
3414 * the same point on the time-line as this {@code GregorianCalendar}.
3432 * Obtains an instance of {@code GregorianCalendar} with the default locale
3436 * date and uses ISO calendar system, the return GregorianCalendar is a pure
3443 * future and further in the past than {@code GregorianCalendar}. In this
3452 * large to represent as a {@code GregorianCalendar}
3455 public static GregorianCalendar from(ZonedDateTime zdt) {
3456 GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone(zdt.getZone()));