Joda Time API

org.joda.time.chrono.iso
Class ISOChronology

java.lang.Object
  |
  +--org.joda.time.Chronology
        |
        +--org.joda.time.chrono.DelegateChronology
              |
              +--org.joda.time.chrono.iso.ISOChronology
All Implemented Interfaces:
java.io.Serializable

public final class ISOChronology
extends DelegateChronology

ISOChronology provides access to the individual date time fields for the ISO8601 defined chronological calendar system. When ISO does not define a field, but it can be determined (such as AM/PM) it is included.

Since:
1.0
Author:
Stephen Colebourne, Brian S O'Neill
See Also:
Serialized Form

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.
 java.lang.String toString()
          Gets a debugging toString.
 Chronology withDateTimeZone(DateTimeZone zone)
          Gets the Chronology in a specific time zone.
 Chronology withUTC()
          Gets the Chronology in the UTC time zone.
 
Methods inherited from class org.joda.time.chrono.DelegateChronology
centuryOfEra, clockhourOfDay, clockhourOfHalfday, dayOfMonth, dayOfWeek, dayOfYear, era, getChronology, getDateTimeZone, halfdayOfDay, hourOfDay, hourOfHalfday, millisOfDay, millisOfSecond, minuteOfDay, minuteOfHour, monthOfYear, secondOfDay, secondOfMinute, weekOfWeekyear, weekyear, year, yearOfCentury, yearOfEra
 
Methods inherited from class org.joda.time.Chronology
getDateOnlyMillis, getTimeOnlyMillis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstanceUTC

public static ISOChronology getInstanceUTC()
Gets an instance of the ISOChronology. The time zone of the returned instance is UTC.

Returns:
a singleton UTC instance of the chronology

getInstance

public static ISOChronology getInstance()
Gets an instance of the ISOChronology in the default time zone.

Returns:
a chronology in the default time zone

getInstance

public static ISOChronology getInstance(DateTimeZone zone)
Gets an instance of the ISOChronology in the given time zone.

Parameters:
zone - the time zone to get the chronology in, null is default
Returns:
a chronology in the specified time zone

withUTC

public Chronology withUTC()
Gets the Chronology in the UTC time zone.

Specified by:
withUTC in class DelegateChronology
Returns:
the chronology in UTC

withDateTimeZone

public Chronology withDateTimeZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.

Specified by:
withDateTimeZone in class DelegateChronology
Parameters:
zone - the zone to get the chronology in, null is default
Returns:
the chronology

toString

public java.lang.String toString()
Gets a debugging toString.

Overrides:
toString in class java.lang.Object
Returns:
a debugging string

Joda Time API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.