Esempio n. 1
0
 /**
  * Gets an instance of the GregorianChronology in the specified zone.
  *
  * <p>{@link GregorianChronology} defines all fields using standard meanings. It uses the
  * Gregorian calendar rules <i>for all time</i> (proleptic) thus it is NOT a replacement for
  * <code>GregorianCalendar</code>. For that purpose, you should use {@link #getGJ()}.
  *
  * <p>The Gregorian calendar system defines a leap year every four years, except that every 100
  * years is not leap, but every 400 is leap.
  *
  * <p>Technically, this chronology is almost identical to the ISO chronology, thus we recommend
  * using ISOChronology instead, which is the default.
  *
  * @param zone the zone to use, null means default zone
  * @return the Gregorian chronology
  * @deprecated Use GregorianChronology.getInstance(zone)
  */
 public static Chronology getGregorian(DateTimeZone zone) {
   return GregorianChronology.getInstance(zone);
 }
Esempio n. 2
0
 /**
  * Gets an instance of the GregorianChronology in the UTC zone.
  *
  * <p>{@link GregorianChronology} defines all fields using standard meanings. It uses the
  * Gregorian calendar rules <i>for all time</i> (proleptic) thus it is NOT a replacement for
  * <code>GregorianCalendar</code>. For that purpose, you should use {@link #getGJ()}.
  *
  * <p>The Gregorian calendar system defines a leap year every four years, except that every 100
  * years is not leap, but every 400 is leap.
  *
  * <p>Technically, this chronology is almost identical to the ISO chronology, thus we recommend
  * using ISOChronology instead, which is the default.
  *
  * @return the Gregorian chronology
  * @deprecated Use GregorianChronology.getInstanceUTC()
  */
 public static Chronology getGregorianUTC() {
   return GregorianChronology.getInstanceUTC();
 }