Interface Chronology


public interface Chronology

Chronology provides access to the individual date time fields for a chronological calendar system.

Various chronologies are supported by subclasses including ISO and GregorianJulian. To construct a Chronology you should use the factory methods on the TimeSupportManager.

The provided chronology implementations are:

  • ISO - Based on the ISO8601 standard and suitable for use after about 1600
  • GJ - Historically accurate calendar with Julian followed by Gregorian
  • Gregorian - The Gregorian calendar system used for all time (proleptic)
  • Julian - The Julian calendar system used for all time (proleptic)
  • Buddhist - The Buddhist calendar system which is an offset in years from GJ
  • Coptic - The Coptic calendar system which defines 30 day months
  • Ethiopic - The Ethiopic calendar system which defines 30 day months

Instances of this class are singletons and they can be compared using the ChronologygetType() method and the == operator.

A huge part of the documentation of this class has been retrieved from the joda-time library.

Version:
$Id$
Author:
gvSIG Team
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the code of the type, that is one of the constants defined in the Chronology class.
    Returns an instance of this Chronology that operates in the UTC time zone.
  • Field Details

  • Method Details

    • getType

      int getType()
      Gets the code of the type, that is one of the constants defined in the Chronology class.
      Returns:
      the type code
    • withUTC

      Chronology withUTC()
      Returns an instance of this Chronology that operates in the UTC time zone. Chronologies that do not operate in a time zone or are already UTC must return themself.
      Returns:
      a version of this chronology that ignores time zones