org.joda.time.chrono
Class GregorianChronology
- Serializable
public final class GregorianChronology
extends org.joda.time.chrono.BasicGJChronology
Implements a pure proleptic Gregorian calendar system, which defines every
fourth year as leap, unless the year is divisible by 100 and not by 400.
This improves upon the Julian calendar leap year rule.
Although the Gregorian calendar did not exist before 1582 CE, this
chronology assumes it did, thus it is proleptic. This implementation also
fixes the start of the year at January 1, and defines the year zero.
GregorianChronology is thread-safe and immutable.
- Guy Allard
- Stephen Colebourne
- Brian S O'Neill
assemble , 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 , years |
add , add , centuries , centuryOfEra , clockhourOfDay , clockhourOfHalfday , dayOfMonth , dayOfWeek , dayOfYear , days , era , eras , get , get , get , getDateTimeMillis , getDateTimeMillis , getDateTimeMillis , getZone , halfdayOfDay , halfdays , hourOfDay , hourOfHalfday , hours , millis , millisOfDay , millisOfSecond , minuteOfDay , minuteOfHour , minutes , monthOfYear , months , secondOfDay , secondOfMinute , seconds , set , toString , validate , weekOfWeekyear , weeks , weekyear , weekyearOfCentury , weekyears , withUTC , withZone , year , yearOfCentury , yearOfEra , years |
add , add , centuries , centuryOfEra , clockhourOfDay , clockhourOfHalfday , dayOfMonth , dayOfWeek , dayOfYear , days , era , eras , get , get , get , getBuddhist , getBuddhist , getBuddhistUTC , getCoptic , getCoptic , getCopticUTC , getDateTimeMillis , getDateTimeMillis , getDateTimeMillis , getGJ , getGJ , getGJUTC , getGregorian , getGregorian , getGregorianUTC , getISO , getISO , getISOUTC , getJulian , getJulian , getJulianUTC , getZone , halfdayOfDay , halfdays , hourOfDay , hourOfHalfday , hours , millis , millisOfDay , millisOfSecond , minuteOfDay , minuteOfHour , minutes , monthOfYear , months , secondOfDay , secondOfMinute , seconds , set , toString , validate , weekOfWeekyear , weeks , weekyear , weekyearOfCentury , weekyears , withUTC , withZone , year , yearOfCentury , yearOfEra , years |
assemble
protected void assemble(AssembledChronology.Fields fields)
Invoked by the constructor and after deserialization to allow subclasses
to define all of its supported fields. All unset fields default to
unsupported instances.
- assemble in interface org.joda.time.chrono.BasicChronology
fields
- container of fields
getInstance
public static GregorianChronology getInstance()
Gets an instance of the GregorianChronology in the default time zone.
- a chronology in the default time zone
getInstance
public static GregorianChronology getInstance(DateTimeZone zone)
Gets an instance of the GregorianChronology in the given time zone.
zone
- the time zone to get the chronology in, null is default
- a chronology in the specified time zone
getInstance
public static GregorianChronology getInstance(DateTimeZone zone,
int minDaysInFirstWeek)
Gets an instance of the GregorianChronology in the given time zone.
zone
- the time zone to get the chronology in, null is defaultminDaysInFirstWeek
- minimum number of days in first week of the year; default is 4
- a chronology in the specified time zone
getInstanceUTC
public static GregorianChronology getInstanceUTC()
Gets an instance of the GregorianChronology.
The time zone of the returned instance is UTC.
- a singleton UTC instance of the chronology
Copyright (c) 2001-2006 - Joda.org