|
Joda Time API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.joda.time.Chronology
Chronology provides access to the individual date time fields for a chronological calendar system.
Chronology subclasses must be immutable.
Various chronologies are supported by subclasses including ISO and GregorianJulian.
This class does not strongly define each field. Subclasses may interpret the fields differently.
ISOChronology,
GJChronology,
Serialized Form| Constructor Summary | |
protected |
Chronology()
Restricted constructor |
| Method Summary | |
DateTimeField |
centuryOfEra()
Get the century of era field for this chronology. |
DateTimeField |
clockhourOfDay()
Get the hour of day (offset to 1-24) field for this chronology. |
DateTimeField |
clockhourOfHalfday()
Get the hour of am/pm (offset to 1-12) field for this chronology. |
DateTimeField |
dayOfMonth()
Get the day of month field for this chronology. |
DateTimeField |
dayOfWeek()
Get the day of week field for this chronology. |
DateTimeField |
dayOfYear()
Get the day of year field for this chronology. |
DateTimeField |
era()
Get the era field for this chronology. |
long |
getDateOnlyMillis(long millis)
Get the millis for a date only field. |
abstract DateTimeZone |
getDateTimeZone()
Returns the DateTimeZone that this Chronology operates in, or null if unspecified. |
long |
getTimeOnlyMillis(long millis)
Get the millis for a time only field. |
DateTimeField |
halfdayOfDay()
Get the AM(0) PM(1) field for this chronology. |
DateTimeField |
hourOfDay()
Get the hour of day (0-23) field for this chronology. |
DateTimeField |
hourOfHalfday()
Get the hour of am/pm (0-11) field for this chronology. |
DateTimeField |
millisOfDay()
Get the millis of day field for this chronology. |
DateTimeField |
millisOfSecond()
Get the millis of second field for this chronology. |
DateTimeField |
minuteOfDay()
Get the minute of day field for this chronology. |
DateTimeField |
minuteOfHour()
Get the minute of hour field for this chronology. |
DateTimeField |
monthOfYear()
Get the month of year field for this chronology. |
DateTimeField |
secondOfDay()
Get the second of day field for this chronology. |
DateTimeField |
secondOfMinute()
Get the second of minute field for this chronology. |
DateTimeField |
weekOfWeekyear()
Get the week of a week based year field for this chronology. |
DateTimeField |
weekyear()
Get the year of a week based year field for this chronology. |
abstract Chronology |
withDateTimeZone(DateTimeZone zone)
Returns an instance of this Chronology that operates in any time zone. |
abstract Chronology |
withUTC()
Returns an instance of this Chronology that operates in the UTC time zone. |
DateTimeField |
year()
Get the year field for this chronology. |
DateTimeField |
yearOfCentury()
Get the year of century field for this chronology. |
DateTimeField |
yearOfEra()
Get the year of era field for this chronology. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Chronology()
| Method Detail |
public abstract DateTimeZone getDateTimeZone()
public abstract Chronology withUTC()
public abstract Chronology withDateTimeZone(DateTimeZone zone)
java.lang.IllegalArgumentException - if zone is nullZonedChronologypublic long getTimeOnlyMillis(long millis)
dayOfYear().remainder(millis).
millis - the millis to convert to time only
public long getDateOnlyMillis(long millis)
dayOfYear().roundFloor(millis).
millis - the millis to convert to date only
public DateTimeField millisOfSecond()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField millisOfDay()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField secondOfMinute()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField secondOfDay()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField minuteOfHour()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField minuteOfDay()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField hourOfDay()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField clockhourOfDay()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField hourOfHalfday()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField clockhourOfHalfday()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField halfdayOfDay()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField dayOfWeek()
DayOfWeek values are defined in DateTimeConstants.
They use the ISO definitions, where 1 is Monday and 7 is Sunday.
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField dayOfMonth()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField dayOfYear()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField weekOfWeekyear()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField weekyear()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField monthOfYear()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField year()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField yearOfEra()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField yearOfCentury()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField centuryOfEra()
java.lang.UnsupportedOperationException - if unsupportedpublic DateTimeField era()
java.lang.UnsupportedOperationException - if unsupported
|
Joda Time API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||