org.joda.time.ReadableDateTime |
Known Indirect Subclasses |
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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the year of era field value.
| |||||||||||
Get the day of month field value.
| |||||||||||
Get the day of week field value.
| |||||||||||
Get the day of year field value.
| |||||||||||
Get the era field value.
| |||||||||||
Get the hour of day field value.
| |||||||||||
Get the millis of day field value.
| |||||||||||
Get the millis of second field value.
| |||||||||||
Get the minute of day field value.
| |||||||||||
Get the minute of hour field value.
| |||||||||||
Get the month of year field value.
| |||||||||||
Get the second of day field value.
| |||||||||||
Get the second of minute field value.
| |||||||||||
Get the week of weekyear field value.
| |||||||||||
Get the weekyear field value.
| |||||||||||
Get the year field value.
| |||||||||||
Get the year of century field value.
| |||||||||||
Get the year of era field value.
| |||||||||||
Get this object as a DateTime.
| |||||||||||
Get this object as a MutableDateTime, always returning a new instance.
| |||||||||||
Output the instant using the specified format pattern.
| |||||||||||
Output the instant using the specified format pattern.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.lang.Comparable
| |||||||||||
From interface
org.joda.time.ReadableInstant
|
Get the year of era field value.
Get the day of month field value.
Get the day of week field value.
The values for the day of week are defined in DateTimeConstants
.
Get the day of year field value.
Get the era field value.
Get the hour of day field value.
Get the millis of day field value.
Get the millis of second field value.
Get the minute of day field value.
Get the minute of hour field value.
Get the month of year field value.
Get the second of day field value.
Get the second of minute field value.
Get the week of weekyear field value.
Get the weekyear field value.
Get the year field value.
Get the year of century field value.
Get the year of era field value.
Get this object as a DateTime.
If the implementation of the interface is a DateTime, it is returned directly.
Get this object as a MutableDateTime, always returning a new instance.
Output the instant using the specified format pattern.
pattern | pattern specification |
---|---|
locale | Locale to use, or null for default |
IllegalArgumentException | if pattern is invalid |
---|
Output the instant using the specified format pattern.
pattern | pattern specification |
---|
IllegalArgumentException | if pattern is invalid |
---|