Ejemplo n.º 1
0
 /**
  * Gets an instance of the GJChronology in the specified zone.
  *
  * <p>{@link GJChronology} defines all fields using standard meanings. This chronology is intended
  * to be used as a replacement for <code>GregorianCalendar</code>. The Gregorian calendar system
  * is used after October 15, 1582, while the Julian calendar system is used before.
  *
  * <p>Unlike <code>GregorianCalendar</code>, this chronology returns a year of -1 for 1 BCE, -2
  * for 2 BCE and so on. Thus there is no year zero.
  *
  * <p>This method uses the standard Julian to Gregorian cutover date of October 15th 1582. If you
  * require a cutover on a different date, then use the factories on <code>GJChronology</code>
  * itself.
  *
  * <p>When dealing solely with dates in the modern era, from 1600 onwards, we recommend using
  * ISOChronology, which is the default.
  *
  * @param zone the zone to use, null means default zone
  * @return the GJ chronology
  * @deprecated Use GJChronology.getInstance(zone)
  */
 public static Chronology getGJ(DateTimeZone zone) {
   return GJChronology.getInstance(zone);
 }
Ejemplo n.º 2
0
 /**
  * Gets an instance of the GJChronology in the UTC zone.
  *
  * <p>{@link GJChronology} defines all fields using standard meanings. This chronology is intended
  * to be used as a replacement for <code>GregorianCalendar</code>. The Gregorian calendar system
  * is used after October 15, 1582, while the Julian calendar system is used before.
  *
  * <p>Unlike <code>GregorianCalendar</code>, this chronology returns a year of -1 for 1 BCE, -2
  * for 2 BCE and so on. Thus there is no year zero.
  *
  * <p>This method uses the standard Julian to Gregorian cutover date of October 15th 1582. If you
  * require a cutover on a different date, then use the factories on <code>GJChronology</code>
  * itself.
  *
  * <p>When dealing solely with dates in the modern era, from 1600 onwards, we recommend using
  * ISOChronology, which is the default.
  *
  * @return the GJ chronology
  * @deprecated Use GJChronology.getInstanceUTC()
  */
 public static Chronology getGJUTC() {
   return GJChronology.getInstanceUTC();
 }