public interface ReadWritableDateTime extends ReadableDateTime, ReadWritableInstant
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.
Modifier and Type | Method and Description |
---|---|
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.
|
getCenturyOfEra, getDayOfMonth, getDayOfWeek, getDayOfYear, getEra, getHourOfDay, getMillisOfDay, getMillisOfSecond, getMinuteOfDay, getMinuteOfHour, getMonthOfYear, getSecondOfDay, getSecondOfMinute, getWeekOfWeekyear, getWeekyear, getYear, getYearOfCentury, getYearOfEra, toDateTime, toMutableDateTime, toString, toString
add, add, add, add, add, add, set, setChronology, setMillis, setMillis, setZone, setZoneRetainFields
equals, get, getChronology, getMillis, getZone, hashCode, isAfter, isBefore, isEqual, isSupported, toInstant, toString
void setYear(int year)
year
- the yearjava.lang.IllegalArgumentException
- if the value is invalidvoid addYears(int years)
years
- the years to addjava.lang.IllegalArgumentException
- if the value is invalidvoid setWeekyear(int weekyear)
weekyear
- the weekyearjava.lang.IllegalArgumentException
- if the value is invalidvoid addWeekyears(int weekyears)
weekyears
- the weekyears to addjava.lang.IllegalArgumentException
- if the value is invalidvoid setMonthOfYear(int monthOfYear)
monthOfYear
- the month of the yearjava.lang.IllegalArgumentException
- if the value is invalidvoid addMonths(int months)
months
- the months to addjava.lang.IllegalArgumentException
- if the value is invalidvoid setWeekOfWeekyear(int weekOfWeekyear)
weekOfWeekyear
- the week of the weekyearjava.lang.IllegalArgumentException
- if the value is invalidvoid addWeeks(int weeks)
weeks
- the weeks to addjava.lang.IllegalArgumentException
- if the value is invalidvoid setDayOfYear(int dayOfYear)
dayOfYear
- the day of the yearjava.lang.IllegalArgumentException
- if the value is invalidvoid setDayOfMonth(int dayOfMonth)
dayOfMonth
- the day of the monthjava.lang.IllegalArgumentException
- if the value is invalidvoid setDayOfWeek(int dayOfWeek)
dayOfWeek
- the day of the weekjava.lang.IllegalArgumentException
- if the value is invalidvoid addDays(int days)
days
- the days to addjava.lang.IllegalArgumentException
- if the value is invalidvoid setHourOfDay(int hourOfDay)
hourOfDay
- the hour of dayjava.lang.IllegalArgumentException
- if the value is invalidvoid addHours(int hours)
hours
- the hours to addjava.lang.IllegalArgumentException
- if the value is invalidvoid setMinuteOfDay(int minuteOfDay)
minuteOfDay
- the minute of dayjava.lang.IllegalArgumentException
- if the value is invalidvoid setMinuteOfHour(int minuteOfHour)
minuteOfHour
- the minute of hourjava.lang.IllegalArgumentException
- if the value is invalidvoid addMinutes(int minutes)
minutes
- the minutes to addjava.lang.IllegalArgumentException
- if the value is invalidvoid setSecondOfDay(int secondOfDay)
secondOfDay
- the second of dayjava.lang.IllegalArgumentException
- if the value is invalidvoid setSecondOfMinute(int secondOfMinute)
secondOfMinute
- the second of minutejava.lang.IllegalArgumentException
- if the value is invalidvoid addSeconds(int seconds)
seconds
- the seconds to addjava.lang.IllegalArgumentException
- if the value is invalidvoid setMillisOfDay(int millisOfDay)
millisOfDay
- the millis of dayjava.lang.IllegalArgumentException
- if the value is invalidvoid setMillisOfSecond(int millisOfSecond)
millisOfSecond
- the millis of secondjava.lang.IllegalArgumentException
- if the value is invalidvoid addMillis(int millis)
ReadWritableInstant.add(long)
method in that a
DateTimeField performs the addition.millis
- the milliseconds to addjava.lang.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 monthjava.lang.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 secondjava.lang.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 secondjava.lang.IllegalArgumentException
- if any value is invalid"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"