|
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.AbstractInstant
|
+--org.joda.time.AbstractDateTime
AbstractDateTime provides the common behaviour for immutable datetime classes.
This class should generally not be used directly by API users. The
ReadableDateTime interface should be used when different
kinds of date/time objects are to be referenced.
| Constructor Summary | |
AbstractDateTime()
|
|
| 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. |
DateTime |
toISODateTime()
Get this object as a trusted ISO DateTime. |
DateTime |
toISODateTime(DateTimeZone zone)
Get this object as a trusted ISO DateTime. |
MutableDateTime |
toISOMutableDateTime()
Get this object as a trusted ISO MutableDateTime. |
MutableDateTime |
toISOMutableDateTime(DateTimeZone zone)
Get this object as a trusted ISO MutableDateTime. |
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()
Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZ). |
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 class org.joda.time.AbstractInstant |
compareTo, create, equals, get, getDateTimeZone, hashCode, isAfter, isBefore, isEqual, toCalendar, toCopy, toCopy, toDate, toGregorianCalendar, toInstant |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.joda.time.ReadableInstant |
compareTo, equals, get, getChronology, getDateTimeZone, getMillis, hashCode, isAfter, isBefore, isEqual, toCopy, toCopy, toInstant |
| Constructor Detail |
public AbstractDateTime()
| Method Detail |
public final int getDayOfWeek()
The values for the day of week are defined in DateTimeConstants.
getDayOfWeek in interface ReadableDateTimepublic final int getDayOfMonth()
getDayOfMonth in interface ReadableDateTimepublic final int getDayOfYear()
getDayOfYear in interface ReadableDateTimepublic final int getWeekOfWeekyear()
getWeekOfWeekyear in interface ReadableDateTimepublic final int getWeekyear()
getWeekyear in interface ReadableDateTimepublic final int getMonthOfYear()
getMonthOfYear in interface ReadableDateTimepublic final int getYear()
getYear in interface ReadableDateTimepublic final int getYearOfEra()
getYearOfEra in interface ReadableDateTimepublic final int getYearOfCentury()
getYearOfCentury in interface ReadableDateTimepublic final int getCenturyOfEra()
getCenturyOfEra in interface ReadableDateTimepublic final int getEra()
getEra in interface ReadableDateTimepublic final int getMillisOfSecond()
getMillisOfSecond in interface ReadableDateTimepublic final int getMillisOfDay()
getMillisOfDay in interface ReadableDateTimepublic final int getSecondOfMinute()
getSecondOfMinute in interface ReadableDateTimepublic final int getSecondOfDay()
getSecondOfDay in interface ReadableDateTimepublic final int getMinuteOfHour()
getMinuteOfHour in interface ReadableDateTimepublic final int getMinuteOfDay()
getMinuteOfDay in interface ReadableDateTimepublic final int getHourOfDay()
getHourOfDay in interface ReadableDateTimepublic final DateTime toDateTime()
toDateTime in interface ReadableDateTimepublic final DateTime toDateTime(DateTimeZone zone)
toDateTime in interface ReadableDateTimezone - time zone to apply
java.lang.IllegalArgumentException - if the time zone is nullpublic final DateTime toDateTime(Chronology chronology)
toDateTime in interface ReadableDateTimechronology - chronology to apply
java.lang.IllegalArgumentException - if the chronology is nullpublic final DateTime toISODateTime()
public final DateTime toISODateTime(DateTimeZone zone)
zone - time zone to apply
java.lang.IllegalArgumentException - if the time zone is nullpublic final MutableDateTime toMutableDateTime()
toMutableDateTime in interface ReadableDateTimepublic final MutableDateTime toMutableDateTime(DateTimeZone zone)
toMutableDateTime in interface ReadableDateTimezone - time zone to apply
java.lang.IllegalArgumentException - if the time zone is nullpublic final MutableDateTime toMutableDateTime(Chronology chronology)
toMutableDateTime in interface ReadableDateTimechronology - chronology to apply
java.lang.IllegalArgumentException - if the chronology is nullpublic final MutableDateTime toISOMutableDateTime()
public final MutableDateTime toISOMutableDateTime(DateTimeZone zone)
zone - time zone to apply
java.lang.IllegalArgumentException - if the time zone is nullpublic java.lang.String toString()
toString in interface ReadableInstanttoString in class AbstractInstant
public java.lang.String toString(java.lang.String pattern)
throws java.lang.IllegalArgumentException
toString in interface ReadableDateTimepattern - the 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
toString in interface ReadableDateTimepattern - the pattern specificationlocale - the 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 | ||||||||||