org.joda.time.ReadWritableDateTime |
Known Indirect Subclasses |
Defines an instant in time that can be queried and modified using datetime fields.
The implementation of this interface will be mutable. It may provide more advanced methods than those in the interface.
Methods in your application should be defined using ReadWritableDateTime
as a parameter if the method wants to manipulate and change a date in simple ways.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a number of days to the date.
| |||||||||||
Add a number of hours to the date.
| |||||||||||
Add a number of milliseconds to the date.
| |||||||||||
Add a number of minutes to the date.
| |||||||||||
Add a number of months to the date.
| |||||||||||
Add a number of seconds to the date.
| |||||||||||
Add a number of weeks to the date.
| |||||||||||
Add a number of weekyears to the date.
| |||||||||||
Add a number of years to the date.
| |||||||||||
Set the date from fields.
| |||||||||||
Set the date and time from fields.
| |||||||||||
Set the day of the month to the specified value.
| |||||||||||
Set the day of week to the specified value.
| |||||||||||
Set the day of year to the specified value.
| |||||||||||
Set the hour of the day to the specified value.
| |||||||||||
Set the millis of the day to the specified value.
| |||||||||||
Set the millis of the second to the specified value.
| |||||||||||
Set the minute of the day to the specified value.
| |||||||||||
Set the minute of the hour to the specified value.
| |||||||||||
Set the month of the year to the specified value.
| |||||||||||
Set the second of the day to the specified value.
| |||||||||||
Set the second of the minute to the specified value.
| |||||||||||
Set the time from fields.
| |||||||||||
Set the week of weekyear to the specified value.
| |||||||||||
Set the weekyear to the specified value.
| |||||||||||
Set the year to the specified value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.lang.Comparable
| |||||||||||
From interface
org.joda.time.ReadWritableInstant
| |||||||||||
From interface
org.joda.time.ReadableDateTime
| |||||||||||
From interface
org.joda.time.ReadableInstant
|
Add a number of days to the date.
days | the days to add |
---|
IllegalArgumentException | if the value is invalid |
---|
Add a number of hours to the date.
hours | the hours to add |
---|
IllegalArgumentException | if the value is invalid |
---|
Add a number of milliseconds to the date. The implementation of this
method differs from the add(long)
method in that a
DateTimeField performs the addition.
millis | the milliseconds to add |
---|
IllegalArgumentException | if the value is invalid |
---|
Add a number of minutes to the date.
minutes | the minutes to add |
---|
IllegalArgumentException | if the value is invalid |
---|
Add a number of months to the date.
months | the months to add |
---|
IllegalArgumentException | if the value is invalid |
---|
Add a number of seconds to the date.
seconds | the seconds to add |
---|
IllegalArgumentException | if the value is invalid |
---|
Add a number of weeks to the date.
weeks | the weeks to add |
---|
IllegalArgumentException | if the value is invalid |
---|
Add a number of weekyears to the date.
weekyears | the weekyears to add |
---|
IllegalArgumentException | if the value is invalid |
---|
Add a number of years to the date.
years | the years to add |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the date from fields. The time part of this object will be unaffected.
year | the year |
---|---|
monthOfYear | the month of the year |
dayOfMonth | the day of the month |
IllegalArgumentException | if any value is invalid |
---|
Set the date and time from fields.
year | the year |
---|---|
monthOfYear | the month of the year |
dayOfMonth | the day of the month |
hourOfDay | the hour of the day |
minuteOfHour | the minute of the hour |
secondOfMinute | the second of the minute |
millisOfSecond | the millisecond of the second |
IllegalArgumentException | if any value is invalid |
---|
Set the day of the month to the specified value.
dayOfMonth | the day of the month |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the day of week to the specified value.
dayOfWeek | the day of the week |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the day of year to the specified value.
dayOfYear | the day of the year |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the hour of the day to the specified value.
hourOfDay | the hour of day |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the millis of the day to the specified value.
millisOfDay | the millis of day |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the millis of the second to the specified value.
millisOfSecond | the millis of second |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the minute of the day to the specified value.
minuteOfDay | the minute of day |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the minute of the hour to the specified value.
minuteOfHour | the minute of hour |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the month of the year to the specified value.
monthOfYear | the month of the year |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the second of the day to the specified value.
secondOfDay | the second of day |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the second of the minute to the specified value.
secondOfMinute | the second of minute |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the time from fields. The date part of this object will be unaffected.
hour | the hour |
---|---|
minuteOfHour | the minute of the hour |
secondOfMinute | the second of the minute |
millisOfSecond | the millisecond of the second |
IllegalArgumentException | if any value is invalid |
---|
Set the week of weekyear to the specified value.
weekOfWeekyear | the week of the weekyear |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the weekyear to the specified value.
weekyear | the weekyear |
---|
IllegalArgumentException | if the value is invalid |
---|
Set the year to the specified value.
year | the year |
---|
IllegalArgumentException | if the value is invalid |
---|