<date-math>
Purpose/Function
Modify a date object by adding or subtracting a value for one of its fields.
Attributes
NAME |
TYPE |
DEFAULT VALUE |
DESCRIPTION |
---|---|---|---|
add |
|
0 |
increment value |
subtract |
|
0 |
decrement value |
date |
|
(required if inputString not set) |
date to modify |
inputString |
|
(required if date not set) |
date to modify |
field |
|
(required) |
name of the date field to modify; one of: "year", "month", "day", "hour", "minute", or "second" |
format |
|
"yyyy/MM/dd HH:mm:ss" |
format used for conversion of string to date |
Elements
None.
ReturnValues
DEFAULT NAME |
TYPE |
DESCRIPTION |
---|---|---|
date |
|
new date object produced by the increment or decrement of the given field |
Examples
<date-math date="${start.date}" field="hour" add="${forecast.time}"> <return-value assignedName="end.date" defaultName="date" /> </date-math>