|
Joda Time API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Extends the ReadableInstant interface to support specific datetime fields.
| Method Summary | |
int |
getCenturyOfEra()
Get the year of era field value. |
int |
getDayOfMonth()
Get the day of month field value. |
int |
getDayOfWeek()
Get the day of week field value. |
int |
getDayOfYear()
Get the day of year field value. |
int |
getEra()
Get the era field value. |
int |
getHourOfDay()
Get the hour of day field value. |
int |
getMillisOfDay()
Get the millis of day field value. |
int |
getMillisOfSecond()
Get the millis of second field value. |
int |
getMinuteOfDay()
Get the minute of day field value. |
int |
getMinuteOfHour()
Get the minute of hour field value. |
int |
getMonthOfYear()
Get the month of year field value. |
int |
getSecondOfDay()
Get the second of day field value. |
int |
getSecondOfMinute()
Get the second of minute field value. |
int |
getWeekOfWeekyear()
Get the week of weekyear field value. |
int |
getWeekyear()
Get the weekyear field value. |
int |
getYear()
Get the year field value. |
int |
getYearOfCentury()
Get the year of century field value. |
int |
getYearOfEra()
Get the year of era field value. |
DateTime |
toDateTime()
Get this object as a DateTime. |
DateTime |
toDateTime(Chronology chronology)
Get this object as a DateTime. |
DateTime |
toDateTime(DateTimeZone zone)
Get this object as a DateTime. |
MutableDateTime |
toMutableDateTime()
Get this object as a MutableDateTime. |
MutableDateTime |
toMutableDateTime(Chronology chronology)
Get this object as a MutableDateTime. |
MutableDateTime |
toMutableDateTime(DateTimeZone zone)
Get this object as a MutableDateTime. |
java.lang.String |
toString(java.lang.String pattern)
Output the instant using the specified format pattern. |
java.lang.String |
toString(java.lang.String pattern,
java.util.Locale locale)
Output the instant using the specified format pattern. |
| Methods inherited from interface org.joda.time.ReadableInstant |
compareTo, equals, get, getChronology, getDateTimeZone, getMillis, hashCode, isAfter, isBefore, isEqual, toCopy, toCopy, toInstant, toString |
| Method Detail |
public int getDayOfWeek()
The values for the day of week are defined in DateTimeConstants.
public int getDayOfMonth()
public int getDayOfYear()
public int getWeekOfWeekyear()
public int getWeekyear()
public int getMonthOfYear()
public int getYear()
public int getYearOfEra()
public int getYearOfCentury()
public int getCenturyOfEra()
public int getEra()
public int getMillisOfSecond()
public int getMillisOfDay()
public int getSecondOfMinute()
public int getSecondOfDay()
public int getMinuteOfHour()
public int getMinuteOfDay()
public int getHourOfDay()
public DateTime toDateTime()
public DateTime toDateTime(DateTimeZone zone)
zone - time zone to apply
java.lang.IllegalArgumentException - if the time zone is nullpublic DateTime toDateTime(Chronology chronology)
chronology - chronology to apply
java.lang.IllegalArgumentException - if the chronology is nullpublic MutableDateTime toMutableDateTime()
public MutableDateTime toMutableDateTime(DateTimeZone zone)
zone - time zone to apply
java.lang.IllegalArgumentException - if the time zone is nullpublic MutableDateTime toMutableDateTime(Chronology chronology)
chronology - chronology to apply
java.lang.IllegalArgumentException - if the chronology is null
public java.lang.String toString(java.lang.String pattern)
throws java.lang.IllegalArgumentException
pattern - pattern specification
java.lang.IllegalArgumentExceptionDateTimeFormatterBuilder.appendPattern(java.lang.String)
public java.lang.String toString(java.lang.String pattern,
java.util.Locale locale)
throws java.lang.IllegalArgumentException
pattern - pattern specificationlocale - Locale to use, must not be null
java.lang.IllegalArgumentException - if the locale is nullDateTimeFormatterBuilder.appendPattern(java.lang.String)
|
Joda Time API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||