org.joda.time.chrono

Class EthiopicChronology

Implemented Interfaces:
Serializable

public final class EthiopicChronology
extends org.joda.time.chrono.BasicFixedMonthChronology

Implements the Ethiopic calendar system, which defines every fourth year as leap, much like the Julian calendar. The year is broken down into 12 months, each 30 days in length. An extra period at the end of the year is either 5 or 6 days in length. In this implementation, it is considered a 13th month.

Year 1 in the Ethiopic calendar began on August 29, 8 CE (Julian), thus Ethiopic years do not begin at the same time as Julian years. This chronology is not proleptic, as it does not allow dates before the first Ethiopic year.

This implementation defines a day as midnight to midnight exactly as per the ISO chronology. Some references indicate that a coptic day starts at sunset on the previous ISO day, but this has not been confirmed and is not implemented.

EthiopicChronology is thread-safe and immutable.

Authors:
Brian S O'Neill
Stephen Colebourne
Since:
1.2
See Also:
Wikipedia

Nested Class Summary

Nested classes/interfaces inherited from class org.joda.time.chrono.AssembledChronology

AssembledChronology.Fields

Field Summary

static int
EE
Constant value for 'Ethiopean Era', equivalent to the value returned for AD/CE.

Method Summary

protected void
assemble(AssembledChronology.Fields fields)
static EthiopicChronology
getInstance()
Gets an instance of the EthiopicChronology in the default time zone.
static EthiopicChronology
getInstance(DateTimeZone zone)
Gets an instance of the EthiopicChronology in the given time zone.
static EthiopicChronology
getInstance(DateTimeZone zone, int minDaysInFirstWeek)
Gets an instance of the EthiopicChronology in the given time zone.
static EthiopicChronology
getInstanceUTC()
Gets an instance of the EthiopicChronology.
Chronology
withUTC()
Gets the Chronology in the UTC time zone.
Chronology
withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.

Methods inherited from class org.joda.time.chrono.BasicChronology

assemble, equals, getDateTimeMillis, getDateTimeMillis, getMinimumDaysInFirstWeek, getZone, hashCode, toString

Methods inherited from class org.joda.time.chrono.AssembledChronology

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

Methods inherited from class org.joda.time.chrono.BaseChronology

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

Methods inherited from class org.joda.time.Chronology

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

Field Details

EE

public static final int EE
Constant value for 'Ethiopean Era', equivalent to the value returned for AD/CE.
Field Value:
1

Method Details

assemble

protected void assemble(AssembledChronology.Fields fields)
Overrides:
assemble in interface org.joda.time.chrono.BasicChronology

getInstance

public static EthiopicChronology getInstance()
Gets an instance of the EthiopicChronology in the default time zone.
Returns:
a chronology in the default time zone

getInstance

public static EthiopicChronology getInstance(DateTimeZone zone)
Gets an instance of the EthiopicChronology 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

getInstance

public static EthiopicChronology getInstance(DateTimeZone zone,
                                             int minDaysInFirstWeek)
Gets an instance of the EthiopicChronology in the given time zone.
Parameters:
zone - the time zone to get the chronology in, null is default
minDaysInFirstWeek - minimum number of days in first week of the year; default is 4
Returns:
a chronology in the specified time zone

getInstanceUTC

public static EthiopicChronology getInstanceUTC()
Gets an instance of the EthiopicChronology. The time zone of the returned instance is UTC.
Returns:
a singleton UTC instance of the chronology

withUTC

public Chronology withUTC()
Gets the Chronology in the UTC time zone.
Overrides:
withUTC in interface BaseChronology
Returns:
the chronology in UTC

withZone

public Chronology withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.
Overrides:
withZone in interface BaseChronology
Parameters:
zone - the zone to get the chronology in, null is default
Returns:
the chronology

Copyright (c) 2001-2006 - Joda.org