public interface EditableRelativeInstant extends RelativeInstant
The RelativeInstant
ins inmutable, but sometimes is necessary to
edit it. This class is an editable copy of a realtive instant that
cab be edited.
A huge part of the documentation of this class has been retrieved from the joda-time library.
http://joda-time.sourceforge.net
,
https://gvsig.org/web/projects/gvsig-desktop/docs/devel/org-gvsig-sensors/1-0.0/analysis-and-design/detailed-view/time-support/libraries/org-gvsig-timesupport-lib
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 millis to the date.
|
void |
addMinutes(int minutes)
Add a number of minutes to the date.
|
void |
addSeconds(int seconds)
Add a number of seconds 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 |
setTime(int hour,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond)
Set the time from fields.
|
compareTo, getDayOfMonth, getEditableCopy, getHourOfDay, getMillisOfSecond, getMinuteOfDay, getMinuteOfHour, getMonthOfYear, getSecondOfDay, getSecondOfMinute, getYear, toDate, toMillis
getChronology, intersects, isAbsolute, isInstant, isInterval, isRelative
clone, cloneQuietly, cloneQuietly
void 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 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 the value is invalidvoid addYears(int years)
years
- the years to addjava.lang.IllegalArgumentException
- if the value is invalidvoid addDays(int days)
days
- the days to addjava.lang.IllegalArgumentException
- if the value is invalidvoid addHours(int hours)
hours
- the hours to addjava.lang.IllegalArgumentException
- if the value is invalidvoid addMinutes(int minutes)
minutes
- the minutes to addjava.lang.IllegalArgumentException
- if the value is invalidvoid addSeconds(int seconds)
seconds
- the seconds to addjava.lang.IllegalArgumentException
- if the value is invalidvoid addMillis(int millis)
millis
- the millis to addjava.lang.IllegalArgumentException
- if the value is invalid