コード例 #1
0
 /**
  * Gets an instance of the ISOChronology in the UTC zone.
  *
  * <p>{@link ISOChronology} defines all fields in line with the ISO8601 standard. This chronology
  * is the default, and is suitable for all normal datetime processing. It is <i>unsuitable</i> for
  * historical datetimes before October 15, 1582 as it applies the modern Gregorian calendar rules
  * before that date.
  *
  * @return the ISO chronology
  * @deprecated Use ISOChronology.getInstanceUTC()
  */
 public static Chronology getISOUTC() {
   return ISOChronology.getInstanceUTC();
 }
コード例 #2
0
 /**
  * Gets an instance of the ISOChronology in the specified zone.
  *
  * <p>{@link ISOChronology} defines all fields in line with the ISO8601 standard. This chronology
  * is the default, and is suitable for all normal datetime processing. It is <i>unsuitable</i> for
  * historical datetimes before October 15, 1582 as it applies the modern Gregorian calendar rules
  * before that date.
  *
  * @param zone the zone to use, null means default zone
  * @return the ISO chronology
  * @deprecated Use ISOChronology.getInstance(zone)
  */
 public static Chronology getISO(DateTimeZone zone) {
   return ISOChronology.getInstance(zone);
 }
コード例 #3
0
 public DurationField getDurationField() {
   return ISOChronology.getInstanceUTC().seconds();
 }
コード例 #4
0
 public DurationField getRangeDurationField() {
   return ISOChronology.getInstanceUTC().minutes();
 }
コード例 #5
0
 public Chronology getChronology() {
   return ISOChronology.getInstance();
 }