|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReadWritableDateTime
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.
Method Summary | |
---|---|
void |
addDays(int days)
Add a number of days to the date. |
void |
addHours(int hours)
Add a number of hours to the date. |
void |
addMillis(int millis)
Add a number of milliseconds to the date. |
void |
addMinutes(int minutes)
Add a number of minutes to the date. |
void |
addMonths(int months)
Add a number of months to the date. |
void |
addSeconds(int seconds)
Add a number of seconds to the date. |
void |
addWeeks(int weeks)
Add a number of weeks to the date. |
void |
addWeekyears(int weekyears)
Add a number of weekyears to the date. |
void |
addYears(int years)
Add a number of years to the date. |
void |
setDate(int year,
int monthOfYear,
int dayOfMonth)
Set the date from fields. |
void |
setDateTime(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond)
Set the date and time from fields. |
void |
setDayOfMonth(int dayOfMonth)
Set the day of the month to the specified value. |
void |
setDayOfWeek(int dayOfWeek)
Set the day of week to the specified value. |
void |
setDayOfYear(int dayOfYear)
Set the day of year to the specified value. |
void |
setHourOfDay(int hourOfDay)
Set the hour of the day to the specified value. |
void |
setMillisOfDay(int millisOfDay)
Set the millis of the day to the specified value. |
void |
setMillisOfSecond(int millisOfSecond)
Set the millis of the second to the specified value. |
void |
setMinuteOfDay(int minuteOfDay)
Set the minute of the day to the specified value. |
void |
setMinuteOfHour(int minuteOfHour)
Set the minute of the hour to the specified value. |
void |
setMonthOfYear(int monthOfYear)
Set the month of the year to the specified value. |
void |
setSecondOfDay(int secondOfDay)
Set the second of the day to the specified value. |
void |
setSecondOfMinute(int secondOfMinute)
Set the second of the minute to the specified value. |
void |
setTime(int hour,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond)
Set the time from fields. |
void |
setWeekOfWeekyear(int weekOfWeekyear)
Set the week of weekyear to the specified value. |
void |
setWeekyear(int weekyear)
Set the weekyear to the specified value. |
void |
setYear(int year)
Set the year to the specified value. |
Methods inherited from interface org.joda.time.ReadableDateTime |
---|
getCenturyOfEra, getDayOfMonth, getDayOfWeek, getDayOfYear, getEra, getHourOfDay, getMillisOfDay, getMillisOfSecond, getMinuteOfDay, getMinuteOfHour, getMonthOfYear, getSecondOfDay, getSecondOfMinute, getWeekOfWeekyear, getWeekyear, getYear, getYearOfCentury, getYearOfEra, toDateTime, toMutableDateTime, toString, toString |
Methods inherited from interface org.joda.time.ReadableInstant |
---|
equals, get, getChronology, getMillis, getZone, hashCode, isAfter, isBefore, isEqual, isSupported, toInstant, toString |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.joda.time.ReadWritableInstant |
---|
add, add, add, add, add, add, set, setChronology, setMillis, setMillis, setZone, setZoneRetainFields |
Methods inherited from interface org.joda.time.ReadableInstant |
---|
equals, get, getChronology, getMillis, getZone, hashCode, isAfter, isBefore, isEqual, isSupported, toInstant, toString |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
void setYear(int year)
year
- the year
IllegalArgumentException
- if the value is invalidvoid addYears(int years)
years
- the years to add
IllegalArgumentException
- if the value is invalidvoid setWeekyear(int weekyear)
weekyear
- the weekyear
IllegalArgumentException
- if the value is invalidvoid addWeekyears(int weekyears)
weekyears
- the weekyears to add
IllegalArgumentException
- if the value is invalidvoid setMonthOfYear(int monthOfYear)
monthOfYear
- the month of the year
IllegalArgumentException
- if the value is invalidvoid addMonths(int months)
months
- the months to add
IllegalArgumentException
- if the value is invalidvoid setWeekOfWeekyear(int weekOfWeekyear)
weekOfWeekyear
- the week of the weekyear
IllegalArgumentException
- if the value is invalidvoid addWeeks(int weeks)
weeks
- the weeks to add
IllegalArgumentException
- if the value is invalidvoid setDayOfYear(int dayOfYear)
dayOfYear
- the day of the year
IllegalArgumentException
- if the value is invalidvoid setDayOfMonth(int dayOfMonth)
dayOfMonth
- the day of the month
IllegalArgumentException
- if the value is invalidvoid setDayOfWeek(int dayOfWeek)
dayOfWeek
- the day of the week
IllegalArgumentException
- if the value is invalidvoid addDays(int days)
days
- the days to add
IllegalArgumentException
- if the value is invalidvoid setHourOfDay(int hourOfDay)
hourOfDay
- the hour of day
IllegalArgumentException
- if the value is invalidvoid addHours(int hours)
hours
- the hours to add
IllegalArgumentException
- if the value is invalidvoid setMinuteOfDay(int minuteOfDay)
minuteOfDay
- the minute of day
IllegalArgumentException
- if the value is invalidvoid setMinuteOfHour(int minuteOfHour)
minuteOfHour
- the minute of hour
IllegalArgumentException
- if the value is invalidvoid addMinutes(int minutes)
minutes
- the minutes to add
IllegalArgumentException
- if the value is invalidvoid setSecondOfDay(int secondOfDay)
secondOfDay
- the second of day
IllegalArgumentException
- if the value is invalidvoid setSecondOfMinute(int secondOfMinute)
secondOfMinute
- the second of minute
IllegalArgumentException
- if the value is invalidvoid addSeconds(int seconds)
seconds
- the seconds to add
IllegalArgumentException
- if the value is invalidvoid setMillisOfDay(int millisOfDay)
millisOfDay
- the millis of day
IllegalArgumentException
- if the value is invalidvoid setMillisOfSecond(int millisOfSecond)
millisOfSecond
- the millis of second
IllegalArgumentException
- if the value is invalidvoid addMillis(int millis)
ReadWritableInstant.add(long)
method in that a
DateTimeField performs the addition.
millis
- the milliseconds to add
IllegalArgumentException
- if the value is invalidvoid setDate(int year, int monthOfYear, int dayOfMonth)
year
- the yearmonthOfYear
- the month of the yeardayOfMonth
- the day of the month
IllegalArgumentException
- if any value is invalidvoid setTime(int hour, int minuteOfHour, int secondOfMinute, int millisOfSecond)
hour
- the hourminuteOfHour
- the minute of the hoursecondOfMinute
- the second of the minutemillisOfSecond
- the millisecond of the second
IllegalArgumentException
- if any value is invalidvoid setDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)
year
- the yearmonthOfYear
- the month of the yeardayOfMonth
- the day of the monthhourOfDay
- the hour of the dayminuteOfHour
- the minute of the hoursecondOfMinute
- the second of the minutemillisOfSecond
- the millisecond of the second
IllegalArgumentException
- if any value is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |