| java.lang.Object org.joda.time.Chronology org.joda.time.chrono.BaseChronology org.joda.time.chrono.AssembledChronology org.joda.time.chrono.BasicChronology
All known Subclasses: org.joda.time.chrono.BasicGJChronology, org.joda.time.chrono.BasicFixedMonthChronology, org.joda.time.chrono.IslamicChronology,
BasicChronology | abstract class BasicChronology extends AssembledChronology (Code) | | Abstract implementation for calendar systems that use a typical
day/month/year/leapYear model.
Most of the utility methods required by subclasses are package-private,
reflecting the intention that they be defined in the same package.
BasicChronology is thread-safe and immutable, and all subclasses must
be as well.
author: Stephen Colebourne author: Brian S O'Neill author: Guy Allard since: 1.2, renamed from BaseGJChronology |
Method Summary | |
protected void | assemble(Fields fields) | abstract long | calculateFirstDayOfYearMillis(int year) Gets the millisecond value of the first day of the year. | abstract long | getApproxMillisAtEpochDividedByTwo() Returns a constant representing the approximate number of milliseconds
elapsed from year 0 of this chronology, divided by two. | abstract long | getAverageMillisPerMonth() Gets an average value for the milliseconds per month. | abstract long | getAverageMillisPerYear() Gets an average value for the milliseconds per year. | abstract long | getAverageMillisPerYearDividedByTwo() Gets an average value for the milliseconds per year, divided by two. | long | getDateMidnightMillis(int year, int monthOfYear, int dayOfMonth) Gets the milliseconds for a date at midnight. | public long | getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay) | public long | getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) | int | getDayOfMonth(long millis) | int | getDayOfMonth(long millis, int year) | int | getDayOfMonth(long millis, int year, int month) | int | getDayOfWeek(long instant) | int | getDayOfYear(long instant) | int | getDayOfYear(long instant, int year) | int | getDaysInMonthMax() Gets the maximum number of days in any month. | int | getDaysInMonthMax(long instant) Gets the maximum number of days in the month specified by the instant. | abstract int | getDaysInMonthMax(int month) Gets the maximum days in the specified month. | int | getDaysInMonthMaxForSet(long instant, int value) Gets the maximum number of days in the month specified by the instant. | int | getDaysInYear(int year) Get the number of days in the year. | int | getDaysInYearMax() Get the number of days in the year. | abstract int | getDaysInYearMonth(int year, int month) Gets the number of days in the specified month and year. | long | getFirstWeekOfYearMillis(int year) Get the millis for the first week of a year. | int | getMaxMonth(int year) Gets the maximum month for the specified year. | int | getMaxMonth() Gets the maximum number of months. | abstract int | getMaxYear() Gets the maximum supported year. | int | getMillisOfDay(long instant) | abstract int | getMinYear() Gets the minimum supported year. | public int | getMinimumDaysInFirstWeek() | int | getMonthOfYear(long millis) | abstract int | getMonthOfYear(long millis, int year) | abstract long | getTotalMillisByYearMonth(int year, int month) Gets the total number of millis elapsed in this year at the start
of the specified month, such as zero for month 1. | int | getWeekOfWeekyear(long instant) | int | getWeekOfWeekyear(long instant, int year) | int | getWeeksInYear(int year) Get the number of weeks in the year. | int | getWeekyear(long instant) | int | getYear(long instant) | abstract long | getYearDifference(long minuendInstant, long subtrahendInstant) Gets the difference between the two instants in years. | long | getYearMillis(int year) Get the milliseconds for the start of a year.
Parameters: year - The year to use. | long | getYearMonthDayMillis(int year, int month, int dayOfMonth) Get the milliseconds for a particular date. | long | getYearMonthMillis(int year, int month) Get the milliseconds for the start of a month. | public DateTimeZone | getZone() | abstract boolean | isLeapYear(int year) | abstract long | setYear(long instant, int year) Sets the year from an instant and year. | public String | toString() Gets a debugging toString. |
assemble | protected void assemble(Fields fields)(Code) | | |
calculateFirstDayOfYearMillis | abstract long calculateFirstDayOfYearMillis(int year)(Code) | | Gets the millisecond value of the first day of the year.
the milliseconds for the first of the year |
getApproxMillisAtEpochDividedByTwo | abstract long getApproxMillisAtEpochDividedByTwo()(Code) | | Returns a constant representing the approximate number of milliseconds
elapsed from year 0 of this chronology, divided by two. This constant
must be defined as:
(yearAtEpoch * averageMillisPerYear + millisOfYearAtEpoch) / 2
where epoch is 1970-01-01 (Gregorian).
|
getAverageMillisPerMonth | abstract long getAverageMillisPerMonth()(Code) | | Gets an average value for the milliseconds per month.
the millis per month |
getAverageMillisPerYear | abstract long getAverageMillisPerYear()(Code) | | Gets an average value for the milliseconds per year.
the millis per year |
getAverageMillisPerYearDividedByTwo | abstract long getAverageMillisPerYearDividedByTwo()(Code) | | Gets an average value for the milliseconds per year, divided by two.
the millis per year divided by two |
getDateMidnightMillis | long getDateMidnightMillis(int year, int monthOfYear, int dayOfMonth)(Code) | | Gets the milliseconds for a date at midnight.
Parameters: year - the year Parameters: monthOfYear - the month Parameters: dayOfMonth - the day the milliseconds |
getDateTimeMillis | public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) throws IllegalArgumentException(Code) | | |
getDayOfMonth | int getDayOfMonth(long millis)(Code) | | Parameters: millis - from 1970-01-01T00:00:00Z |
getDayOfMonth | int getDayOfMonth(long millis, int year)(Code) | | Parameters: millis - from 1970-01-01T00:00:00Z Parameters: year - precalculated year of millis |
getDayOfMonth | int getDayOfMonth(long millis, int year, int month)(Code) | | Parameters: millis - from 1970-01-01T00:00:00Z Parameters: year - precalculated year of millis Parameters: month - precalculated month of millis |
getDayOfWeek | int getDayOfWeek(long instant)(Code) | | Parameters: instant - millis from 1970-01-01T00:00:00Z |
getDayOfYear | int getDayOfYear(long instant)(Code) | | Parameters: instant - millis from 1970-01-01T00:00:00Z |
getDayOfYear | int getDayOfYear(long instant, int year)(Code) | | Parameters: instant - millis from 1970-01-01T00:00:00Z Parameters: year - precalculated year of millis |
getDaysInMonthMax | int getDaysInMonthMax()(Code) | | Gets the maximum number of days in any month.
31 |
getDaysInMonthMax | int getDaysInMonthMax(long instant)(Code) | | Gets the maximum number of days in the month specified by the instant.
Parameters: instant - millis from 1970-01-01T00:00:00Z the maximum number of days in the month |
getDaysInMonthMax | abstract int getDaysInMonthMax(int month)(Code) | | Gets the maximum days in the specified month.
Parameters: month - the month the max days |
getDaysInMonthMaxForSet | int getDaysInMonthMaxForSet(long instant, int value)(Code) | | Gets the maximum number of days in the month specified by the instant.
The value represents what the user is trying to set, and can be
used to optimise this method.
Parameters: instant - millis from 1970-01-01T00:00:00Z Parameters: value - the value being set the maximum number of days in the month |
getDaysInYear | int getDaysInYear(int year)(Code) | | Get the number of days in the year.
Parameters: year - the year to use 366 if a leap year, otherwise 365 |
getDaysInYearMax | int getDaysInYearMax()(Code) | | Get the number of days in the year.
366 |
getDaysInYearMonth | abstract int getDaysInYearMonth(int year, int month)(Code) | | Gets the number of days in the specified month and year.
Parameters: year - the year Parameters: month - the month the number of days |
getFirstWeekOfYearMillis | long getFirstWeekOfYearMillis(int year)(Code) | | Get the millis for the first week of a year.
Parameters: year - the year to use millis |
getMaxMonth | int getMaxMonth(int year)(Code) | | Gets the maximum month for the specified year.
This implementation calls getMaxMonth().
Parameters: year - the year the maximum month value |
getMaxMonth | int getMaxMonth()(Code) | | Gets the maximum number of months.
12 |
getMaxYear | abstract int getMaxYear()(Code) | | Gets the maximum supported year.
the year |
getMillisOfDay | int getMillisOfDay(long instant)(Code) | | Parameters: instant - millis from 1970-01-01T00:00:00Z |
getMinYear | abstract int getMinYear()(Code) | | Gets the minimum supported year.
the year |
getMinimumDaysInFirstWeek | public int getMinimumDaysInFirstWeek()(Code) | | |
getMonthOfYear | int getMonthOfYear(long millis)(Code) | | Parameters: millis - from 1970-01-01T00:00:00Z |
getMonthOfYear | abstract int getMonthOfYear(long millis, int year)(Code) | | Parameters: millis - from 1970-01-01T00:00:00Z Parameters: year - precalculated year of millis |
getTotalMillisByYearMonth | abstract long getTotalMillisByYearMonth(int year, int month)(Code) | | Gets the total number of millis elapsed in this year at the start
of the specified month, such as zero for month 1.
Parameters: year - the year Parameters: month - the month the elapsed millis at the start of the month |
getWeekOfWeekyear | int getWeekOfWeekyear(long instant)(Code) | | Parameters: instant - millis from 1970-01-01T00:00:00Z |
getWeekOfWeekyear | int getWeekOfWeekyear(long instant, int year)(Code) | | Parameters: instant - millis from 1970-01-01T00:00:00Z Parameters: year - precalculated year of millis |
getWeeksInYear | int getWeeksInYear(int year)(Code) | | Get the number of weeks in the year.
Parameters: year - the year to use number of weeks in the year |
getWeekyear | int getWeekyear(long instant)(Code) | | Parameters: instant - millis from 1970-01-01T00:00:00Z |
getYear | int getYear(long instant)(Code) | | Parameters: instant - millis from 1970-01-01T00:00:00Z |
getYearDifference | abstract long getYearDifference(long minuendInstant, long subtrahendInstant)(Code) | | Gets the difference between the two instants in years.
Parameters: minuendInstant - the first instant Parameters: subtrahendInstant - the second instant the difference |
getYearMillis | long getYearMillis(int year)(Code) | | Get the milliseconds for the start of a year.
Parameters: year - The year to use. millis from 1970-01-01T00:00:00Z |
getYearMonthDayMillis | long getYearMonthDayMillis(int year, int month, int dayOfMonth)(Code) | | Get the milliseconds for a particular date.
Parameters: year - The year to use. Parameters: month - The month to use Parameters: dayOfMonth - The day of the month to use millis from 1970-01-01T00:00:00Z |
getYearMonthMillis | long getYearMonthMillis(int year, int month)(Code) | | Get the milliseconds for the start of a month.
Parameters: year - The year to use. Parameters: month - The month to use millis from 1970-01-01T00:00:00Z |
isLeapYear | abstract boolean isLeapYear(int year)(Code) | | Is the specified year a leap year?
Parameters: year - the year to test true if leap |
setYear | abstract long setYear(long instant, int year)(Code) | | Sets the year from an instant and year.
Parameters: instant - millis from 1970-01-01T00:00:00Z Parameters: year - the year to set the updated millis |
toString | public String toString()(Code) | | Gets a debugging toString.
a debugging string |
Methods inherited from org.joda.time.chrono.AssembledChronology | abstract protected void assemble(Fields fields)(Code)(Java Doc) final public DurationField centuries()(Code)(Java Doc) final public DateTimeField centuryOfEra()(Code)(Java Doc) final public DateTimeField clockhourOfDay()(Code)(Java Doc) final public DateTimeField clockhourOfHalfday()(Code)(Java Doc) final public DateTimeField dayOfMonth()(Code)(Java Doc) final public DateTimeField dayOfWeek()(Code)(Java Doc) final public DateTimeField dayOfYear()(Code)(Java Doc) final public DurationField days()(Code)(Java Doc) final public DateTimeField era()(Code)(Java Doc) final public DurationField eras()(Code)(Java Doc) final protected Chronology getBase()(Code)(Java Doc) public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay) throws IllegalArgumentException(Code)(Java Doc) public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) throws IllegalArgumentException(Code)(Java Doc) public long getDateTimeMillis(long instant, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) throws IllegalArgumentException(Code)(Java Doc) final protected Object getParam()(Code)(Java Doc) public DateTimeZone getZone()(Code)(Java Doc) final public DateTimeField halfdayOfDay()(Code)(Java Doc) final public DurationField halfdays()(Code)(Java Doc) final public DateTimeField hourOfDay()(Code)(Java Doc) final public DateTimeField hourOfHalfday()(Code)(Java Doc) final public DurationField hours()(Code)(Java Doc) final public DurationField millis()(Code)(Java Doc) final public DateTimeField millisOfDay()(Code)(Java Doc) final public DateTimeField millisOfSecond()(Code)(Java Doc) final public DateTimeField minuteOfDay()(Code)(Java Doc) final public DateTimeField minuteOfHour()(Code)(Java Doc) final public DurationField minutes()(Code)(Java Doc) final public DateTimeField monthOfYear()(Code)(Java Doc) final public DurationField months()(Code)(Java Doc) final public DateTimeField secondOfDay()(Code)(Java Doc) final public DateTimeField secondOfMinute()(Code)(Java Doc) final public DurationField seconds()(Code)(Java Doc) final public DateTimeField weekOfWeekyear()(Code)(Java Doc) final public DurationField weeks()(Code)(Java Doc) final public DateTimeField weekyear()(Code)(Java Doc) final public DateTimeField weekyearOfCentury()(Code)(Java Doc) final public DurationField weekyears()(Code)(Java Doc) final public DateTimeField year()(Code)(Java Doc) final public DateTimeField yearOfCentury()(Code)(Java Doc) final public DateTimeField yearOfEra()(Code)(Java Doc) final public DurationField years()(Code)(Java Doc)
|
Methods inherited from org.joda.time.chrono.BaseChronology | public long add(ReadablePeriod period, long instant, int scalar)(Code)(Java Doc) public long add(long instant, long duration, int scalar)(Code)(Java Doc) public DurationField centuries()(Code)(Java Doc) public DateTimeField centuryOfEra()(Code)(Java Doc) public DateTimeField clockhourOfDay()(Code)(Java Doc) public DateTimeField clockhourOfHalfday()(Code)(Java Doc) public DateTimeField dayOfMonth()(Code)(Java Doc) public DateTimeField dayOfWeek()(Code)(Java Doc) public DateTimeField dayOfYear()(Code)(Java Doc) public DurationField days()(Code)(Java Doc) public DateTimeField era()(Code)(Java Doc) public DurationField eras()(Code)(Java Doc) public int[] get(ReadablePartial partial, long instant)(Code)(Java Doc) public int[] get(ReadablePeriod period, long startInstant, long endInstant)(Code)(Java Doc) public int[] get(ReadablePeriod period, long duration)(Code)(Java Doc) public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay) throws IllegalArgumentException(Code)(Java Doc) public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) throws IllegalArgumentException(Code)(Java Doc) public long getDateTimeMillis(long instant, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) throws IllegalArgumentException(Code)(Java Doc) abstract public DateTimeZone getZone()(Code)(Java Doc) public DateTimeField halfdayOfDay()(Code)(Java Doc) public DurationField halfdays()(Code)(Java Doc) public DateTimeField hourOfDay()(Code)(Java Doc) public DateTimeField hourOfHalfday()(Code)(Java Doc) public DurationField hours()(Code)(Java Doc) public DurationField millis()(Code)(Java Doc) public DateTimeField millisOfDay()(Code)(Java Doc) public DateTimeField millisOfSecond()(Code)(Java Doc) public DateTimeField minuteOfDay()(Code)(Java Doc) public DateTimeField minuteOfHour()(Code)(Java Doc) public DurationField minutes()(Code)(Java Doc) public DateTimeField monthOfYear()(Code)(Java Doc) public DurationField months()(Code)(Java Doc) public DateTimeField secondOfDay()(Code)(Java Doc) public DateTimeField secondOfMinute()(Code)(Java Doc) public DurationField seconds()(Code)(Java Doc) public long set(ReadablePartial partial, long instant)(Code)(Java Doc) abstract public String toString()(Code)(Java Doc) public void validate(ReadablePartial partial, int[] values)(Code)(Java Doc) public DateTimeField weekOfWeekyear()(Code)(Java Doc) public DurationField weeks()(Code)(Java Doc) public DateTimeField weekyear()(Code)(Java Doc) public DateTimeField weekyearOfCentury()(Code)(Java Doc) public DurationField weekyears()(Code)(Java Doc) abstract public Chronology withUTC()(Code)(Java Doc) abstract public Chronology withZone(DateTimeZone zone)(Code)(Java Doc) public DateTimeField year()(Code)(Java Doc) public DateTimeField yearOfCentury()(Code)(Java Doc) public DateTimeField yearOfEra()(Code)(Java Doc) public DurationField years()(Code)(Java Doc)
|
Methods inherited from org.joda.time.Chronology | abstract public long add(ReadablePeriod period, long instant, int scalar)(Code)(Java Doc) abstract public long add(long instant, long duration, int scalar)(Code)(Java Doc) abstract public DurationField centuries()(Code)(Java Doc) abstract public DateTimeField centuryOfEra()(Code)(Java Doc) abstract public DateTimeField clockhourOfDay()(Code)(Java Doc) abstract public DateTimeField clockhourOfHalfday()(Code)(Java Doc) abstract public DateTimeField dayOfMonth()(Code)(Java Doc) abstract public DateTimeField dayOfWeek()(Code)(Java Doc) abstract public DateTimeField dayOfYear()(Code)(Java Doc) abstract public DurationField days()(Code)(Java Doc) abstract public DateTimeField era()(Code)(Java Doc) abstract public DurationField eras()(Code)(Java Doc) abstract public int[] get(ReadablePartial partial, long instant)(Code)(Java Doc) abstract public int[] get(ReadablePeriod period, long startInstant, long endInstant)(Code)(Java Doc) abstract public int[] get(ReadablePeriod period, long duration)(Code)(Java Doc) public static Chronology getBuddhist()(Code)(Java Doc) public static Chronology getBuddhist(DateTimeZone zone)(Code)(Java Doc) public static Chronology getBuddhistUTC()(Code)(Java Doc) public static Chronology getCoptic()(Code)(Java Doc) public static Chronology getCoptic(DateTimeZone zone)(Code)(Java Doc) public static Chronology getCopticUTC()(Code)(Java Doc) abstract public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay)(Code)(Java Doc) abstract public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)(Code)(Java Doc) abstract public long getDateTimeMillis(long instant, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)(Code)(Java Doc) public static Chronology getGJ()(Code)(Java Doc) public static Chronology getGJ(DateTimeZone zone)(Code)(Java Doc) public static Chronology getGJUTC()(Code)(Java Doc) public static Chronology getGregorian()(Code)(Java Doc) public static Chronology getGregorian(DateTimeZone zone)(Code)(Java Doc) public static Chronology getGregorianUTC()(Code)(Java Doc) public static Chronology getISO()(Code)(Java Doc) public static Chronology getISO(DateTimeZone zone)(Code)(Java Doc) public static Chronology getISOUTC()(Code)(Java Doc) public static Chronology getJulian()(Code)(Java Doc) public static Chronology getJulian(DateTimeZone zone)(Code)(Java Doc) public static Chronology getJulianUTC()(Code)(Java Doc) abstract public DateTimeZone getZone()(Code)(Java Doc) abstract public DateTimeField halfdayOfDay()(Code)(Java Doc) abstract public DurationField halfdays()(Code)(Java Doc) abstract public DateTimeField hourOfDay()(Code)(Java Doc) abstract public DateTimeField hourOfHalfday()(Code)(Java Doc) abstract public DurationField hours()(Code)(Java Doc) abstract public DurationField millis()(Code)(Java Doc) abstract public DateTimeField millisOfDay()(Code)(Java Doc) abstract public DateTimeField millisOfSecond()(Code)(Java Doc) abstract public DateTimeField minuteOfDay()(Code)(Java Doc) abstract public DateTimeField minuteOfHour()(Code)(Java Doc) abstract public DurationField minutes()(Code)(Java Doc) abstract public DateTimeField monthOfYear()(Code)(Java Doc) abstract public DurationField months()(Code)(Java Doc) abstract public DateTimeField secondOfDay()(Code)(Java Doc) abstract public DateTimeField secondOfMinute()(Code)(Java Doc) abstract public DurationField seconds()(Code)(Java Doc) abstract public long set(ReadablePartial partial, long instant)(Code)(Java Doc) abstract public String toString()(Code)(Java Doc) abstract public void validate(ReadablePartial partial, int[] values)(Code)(Java Doc) abstract public DateTimeField weekOfWeekyear()(Code)(Java Doc) abstract public DurationField weeks()(Code)(Java Doc) abstract public DateTimeField weekyear()(Code)(Java Doc) abstract public DateTimeField weekyearOfCentury()(Code)(Java Doc) abstract public DurationField weekyears()(Code)(Java Doc) abstract public Chronology withUTC()(Code)(Java Doc) abstract public Chronology withZone(DateTimeZone zone)(Code)(Java Doc) abstract public DateTimeField year()(Code)(Java Doc) abstract public DateTimeField yearOfCentury()(Code)(Java Doc) abstract public DateTimeField yearOfEra()(Code)(Java Doc) abstract public DurationField years()(Code)(Java Doc)
|
|
|