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 |
---|---|
boolean |
equals(java.lang.Object obj)
Checks if this chronology instance equals another.
|
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.
|
int |
hashCode()
A suitable hash code for the chronology.
|
java.lang.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, 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
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 defaultpublic 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 defaultZonedChronology
public java.lang.String toString()
toString
in class BaseChronology
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare topublic int hashCode()
hashCode
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved