|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joda.time.Chronology
org.joda.time.chrono.BaseChronology
org.joda.time.chrono.AssembledChronology
org.joda.time.chrono.ISOChronology
public final class ISOChronology
Implements a chronology that follows the rules of the ISO8601 standard, which is compatible with Gregorian for all modern dates. When ISO does not define a field, but it can be determined (such as AM/PM) it is included.
With the exception of century related fields, ISOChronology is exactly the
same as GregorianChronology
. In this chronology, centuries and year
of century are zero based. For all years, the century is determined by
dropping the last two digits of the year, ignoring sign. The year of century
is the value of the last two year digits.
ISOChronology is thread-safe and immutable.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.joda.time.chrono.AssembledChronology |
---|
AssembledChronology.Fields |
Method Summary | |
---|---|
static ISOChronology |
getInstance()
Gets an instance of the ISOChronology in the default time zone. |
static ISOChronology |
getInstance(DateTimeZone zone)
Gets an instance of the ISOChronology in the given time zone. |
static ISOChronology |
getInstanceUTC()
Gets an instance of the ISOChronology. |
String |
toString()
Gets a debugging toString. |
Chronology |
withUTC()
Gets the Chronology in the UTC time zone. |
Chronology |
withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone. |
Methods inherited from class org.joda.time.chrono.AssembledChronology |
---|
centuries, centuryOfEra, clockhourOfDay, clockhourOfHalfday, dayOfMonth, dayOfWeek, dayOfYear, days, era, eras, getDateTimeMillis, getDateTimeMillis, getDateTimeMillis, getZone, halfdayOfDay, halfdays, hourOfDay, hourOfHalfday, hours, millis, millisOfDay, millisOfSecond, minuteOfDay, minuteOfHour, minutes, monthOfYear, months, secondOfDay, secondOfMinute, seconds, weekOfWeekyear, weeks, weekyear, weekyearOfCentury, weekyears, year, yearOfCentury, yearOfEra, years |
Methods inherited from class org.joda.time.chrono.BaseChronology |
---|
add, add, get, get, get, set, validate |
Methods inherited from class org.joda.time.Chronology |
---|
getBuddhist, getBuddhist, getBuddhistUTC, getCoptic, getCoptic, getCopticUTC, getGJ, getGJ, getGJUTC, getGregorian, getGregorian, getGregorianUTC, getISO, getISO, getISOUTC, getJulian, getJulian, getJulianUTC |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static ISOChronology getInstanceUTC()
public static ISOChronology getInstance()
public static ISOChronology getInstance(DateTimeZone zone)
zone
- the time zone to get the chronology in, null is default
public Chronology withUTC()
withUTC
in class BaseChronology
public Chronology withZone(DateTimeZone zone)
withZone
in class BaseChronology
zone
- the zone to get the chronology in, null is default
ZonedChronology
public String toString()
toString
in class BaseChronology
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |