org.goda.time.chrono
public final class ISOChronology extends AssembledChronology
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.
AssembledChronology.Fields| Modifier and Type | Method and Description |
|---|---|
protected void |
assemble(AssembledChronology.Fields fields)
Invoked by the constructor and after deserialization to allow subclasses
to define all of its supported fields.
|
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.
|
centuries, centuryOfEra, clockhourOfDay, clockhourOfHalfday, dayOfMonth, dayOfWeek, dayOfYear, days, era, eras, getBase, getDateTimeMillis, getDateTimeMillis, getDateTimeMillis, getParam, 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, yearsadd, add, get, get, get, set, validategetBuddhist, getBuddhist, getBuddhistUTC, getCoptic, getCoptic, getCopticUTC, getGJ, getGJ, getGJUTC, getGregorian, getGregorian, getGregorianUTC, getISO, getISO, getISOUTC, getJulian, getJulian, getJulianUTCpublic static ISOChronology getInstanceUTC()
public static ISOChronology getInstance()
public static ISOChronology getInstance(DateTimeZone zone)
zone - the time zone to get the chronology in, null is defaultpublic Chronology withUTC()
withUTC in class BaseChronologypublic Chronology withZone(DateTimeZone zone)
withZone in class BaseChronologyzone - the zone to get the chronology in, null is defaultorg.joda.time.chrono.ZonedChronologypublic String toString()
toString in class BaseChronologyprotected void assemble(AssembledChronology.Fields fields)
AssembledChronologyassemble in class AssembledChronologyfields - container of fieldsCopyright © 2013 os-cillation GmbH. All rights reserved.