|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines an instant in time that can be queried using datetime fields.
The implementation of this interface may be mutable or immutable. This interface only gives access to retrieve data, never to change it.
Methods in your application should be defined using ReadableDateTime
as a parameter if the method only wants to read the datetime, and not perform
any advanced manipulations.
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. |
MutableDateTime |
toMutableDateTime()
Get this object as a MutableDateTime, always returning a new instance. |
String |
toString(String pattern)
Output the instant using the specified format pattern. |
String |
toString(String pattern,
Locale locale)
Output the instant using the specified format pattern. |
Methods inherited from interface org.joda.time.ReadableInstant |
compareTo, equals, get, getChronology, getMillis, getZone, hashCode, isAfter, isBefore, isEqual, isSupported, 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()
If the implementation of the interface is a DateTime, it is returned directly.
public MutableDateTime toMutableDateTime()
public String toString(String pattern) throws IllegalArgumentException
pattern
- pattern specification
IllegalArgumentException
- if pattern is invalidDateTimeFormat
public String toString(String pattern, Locale locale) throws IllegalArgumentException
pattern
- pattern specificationlocale
- Locale to use, or null for default
IllegalArgumentException
- if pattern is invalidDateTimeFormat
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |