date:add
Returns the date/time resulting from adding a duration to a date/time.
add($date-time as string, $duration as string) ➔ string
Arguments | |||
| $date-time | string | The input date/time |
| $duration | string | The input duration |
Result | string |
Namespace
http://exslt.org/dates-and-times
Links to specifications
Saxon availability
Requires Saxon-PE or Saxon-EE. Available for Java and C/C++ only (not .NET).
Notes on the Saxon implementation
The specifications of the EXSLT date-and-time handling functions have little to say about timezones. Saxon generally handles inputs with or without a timezone, and uses the XPath 2.0 concept of implicit timezone to interpret the meaning of dates/times without a timezone. The current date and time used by EXSLT functions is the same as that used by the XPath 2.0 current-dateTime() function.