date:difference
Returns the duration between the first date and the second date. If the first date occurs before the second date, then the result is a positive duration; if it occurs after the second date, the result is a negative duration.
difference($start as string, $end as string) ➔ string
Arguments | |||
| $start | string | The first input date/time |
| $end | string | The second input date/time |
Result | string |
Namespace
http://exslt.org/dates-and-times
Links to specifications
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.