java.lang.Object | ||
↳ | org.joda.time.Chronology | |
↳ | org.joda.time.chrono.BaseChronology |
Known Direct Subclasses |
Known Indirect Subclasses |
BaseChronology provides a skeleton implementation for chronology classes. Many utility methods are defined, but all fields are unsupported.
BaseChronology is thread-safe and immutable, and all subclasses must be as well.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Restricted constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the period to the instant, specifying the number of times to add.
| |||||||||||
Adds the duration to the instant, specifying the number of times to add.
| |||||||||||
Get the centuries duration field for this chronology.
| |||||||||||
Get the century of era field for this chronology.
| |||||||||||
Get the hour of day (offset to 1-24) field for this chronology.
| |||||||||||
Get the hour of am/pm (offset to 1-12) field for this chronology.
| |||||||||||
Get the day of month field for this chronology.
| |||||||||||
Get the day of week field for this chronology.
| |||||||||||
Get the day of year field for this chronology.
| |||||||||||
Get the days duration field for this chronology.
| |||||||||||
Get the era field for this chronology.
| |||||||||||
Get the eras duration field for this chronology.
| |||||||||||
Gets the values of a period from an interval.
| |||||||||||
Gets the values of a partial from an instant.
| |||||||||||
Gets the values of a period from an interval.
| |||||||||||
Returns a datetime millisecond instant, from from the given instant,
hour, minute, second, and millisecond values.
| |||||||||||
Returns a datetime millisecond instant, formed from the given year,
month, day, and millisecond values.
| |||||||||||
Returns a datetime millisecond instant, formed from the given year,
month, day, hour, minute, second, and millisecond values.
| |||||||||||
Returns the DateTimeZone that this Chronology operates in, or null if
unspecified.
| |||||||||||
Get the AM(0) PM(1) field for this chronology.
| |||||||||||
Get the halfdays duration field for this chronology.
| |||||||||||
Get the hour of day (0-23) field for this chronology.
| |||||||||||
Get the hour of am/pm (0-11) field for this chronology.
| |||||||||||
Get the hours duration field for this chronology.
| |||||||||||
Get the millis duration field for this chronology.
| |||||||||||
Get the millis of day field for this chronology.
| |||||||||||
Get the millis of second field for this chronology.
| |||||||||||
Get the minute of day field for this chronology.
| |||||||||||
Get the minute of hour field for this chronology.
| |||||||||||
Get the minutes duration field for this chronology.
| |||||||||||
Get the month of year field for this chronology.
| |||||||||||
Get the months duration field for this chronology.
| |||||||||||
Get the second of day field for this chronology.
| |||||||||||
Get the second of minute field for this chronology.
| |||||||||||
Get the seconds duration field for this chronology.
| |||||||||||
Sets the partial into the instant.
| |||||||||||
Gets a debugging toString.
| |||||||||||
Validates whether the fields stored in a partial instant are valid.
| |||||||||||
Get the week of a week based year field for this chronology.
| |||||||||||
Get the weeks duration field for this chronology.
| |||||||||||
Get the year of a week based year field for this chronology.
| |||||||||||
Get the year of a week based year in a century field for this chronology.
| |||||||||||
Get the weekyears duration field for this chronology.
| |||||||||||
Returns an instance of this Chronology that operates in the UTC time
zone.
| |||||||||||
Returns an instance of this Chronology that operates in any time zone.
| |||||||||||
Get the year field for this chronology.
| |||||||||||
Get the year of century field for this chronology.
| |||||||||||
Get the year of era field for this chronology.
| |||||||||||
Get the years duration field for this chronology.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.joda.time.Chronology
| |||||||||||
From class
java.lang.Object
|
Restricted constructor.
Adds the period to the instant, specifying the number of times to add.
period | the period to add, null means add nothing |
---|---|
instant | the instant to add to |
scalar | the number of times to add |
Adds the duration to the instant, specifying the number of times to add.
instant | the instant to add to |
---|---|
duration | the duration to add |
scalar | the number of times to add |
Get the centuries duration field for this chronology.
Get the century of era field for this chronology.
Get the hour of day (offset to 1-24) field for this chronology.
Get the hour of am/pm (offset to 1-12) field for this chronology.
Get the day of month field for this chronology.
Get the day of week field for this chronology.
DayOfWeek values are defined in
DateTimeConstants
.
They use the ISO definitions, where 1 is Monday and 7 is Sunday.
Get the day of year field for this chronology.
Get the days duration field for this chronology.
Get the era field for this chronology.
Get the eras duration field for this chronology.
Gets the values of a period from an interval.
period | the period instant to use |
---|---|
startInstant | the start instant of an interval to query |
endInstant | the start instant of an interval to query |
Gets the values of a partial from an instant.
partial | the partial instant to use |
---|---|
instant | the instant to query |
Gets the values of a period from an interval.
period | the period instant to use |
---|---|
duration | the duration to query |
Returns a datetime millisecond instant, from from the given instant, hour, minute, second, and millisecond values. The set of given values must refer to a valid datetime, or else an IllegalArgumentException is thrown.
The default implementation calls upon separate DateTimeFields to determine the result. Subclasses are encouraged to provide a more efficient implementation.
instant | instant to start from |
---|---|
hourOfDay | hour to use |
minuteOfHour | minute to use |
secondOfMinute | second to use |
millisOfSecond | millisecond to use |
IllegalArgumentException |
---|
Returns a datetime millisecond instant, formed from the given year, month, day, and millisecond values. The set of given values must refer to a valid datetime, or else an IllegalArgumentException is thrown.
The default implementation calls upon separate DateTimeFields to determine the result. Subclasses are encouraged to provide a more efficient implementation.
year | year to use |
---|---|
monthOfYear | month to use |
dayOfMonth | day of month to use |
millisOfDay | millisecond to use |
IllegalArgumentException |
---|
Returns a datetime millisecond instant, formed from the given year, month, day, hour, minute, second, and millisecond values. The set of given values must refer to a valid datetime, or else an IllegalArgumentException is thrown.
The default implementation calls upon separate DateTimeFields to determine the result. Subclasses are encouraged to provide a more efficient implementation.
year | year to use |
---|---|
monthOfYear | month to use |
dayOfMonth | day of month to use |
hourOfDay | hour to use |
minuteOfHour | minute to use |
secondOfMinute | second to use |
millisOfSecond | millisecond to use |
IllegalArgumentException |
---|
Returns the DateTimeZone that this Chronology operates in, or null if unspecified.
Get the AM(0) PM(1) field for this chronology.
Get the halfdays duration field for this chronology.
Get the hour of day (0-23) field for this chronology.
Get the hour of am/pm (0-11) field for this chronology.
Get the hours duration field for this chronology.
Get the millis duration field for this chronology.
Get the millis of day field for this chronology.
Get the millis of second field for this chronology.
Get the minute of day field for this chronology.
Get the minute of hour field for this chronology.
Get the minutes duration field for this chronology.
Get the month of year field for this chronology.
Get the months duration field for this chronology.
Get the second of day field for this chronology.
Get the second of minute field for this chronology.
Get the seconds duration field for this chronology.
Sets the partial into the instant.
partial | the partial instant to use |
---|---|
instant | the instant to update |
Validates whether the fields stored in a partial instant are valid.
This implementation uses getMinimumValue(ReadablePartial, int[])
and getMaximumValue(ReadablePartial, int[])
.
partial | the partial instant to validate |
---|---|
values | the values to validate, not null |
IllegalArgumentException | if the instant is invalid |
---|
Get the week of a week based year field for this chronology.
Get the weeks duration field for this chronology.
Get the year of a week based year field for this chronology.
Get the year of a week based year in a century field for this chronology.
Get the weekyears duration field for this chronology.
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 an instance of this Chronology that operates in any time zone.
zone | to use, or default if null |
---|
Get the year field for this chronology.
Get the year of century field for this chronology.
Get the year of era field for this chronology.
Get the years duration field for this chronology.