EXSLT - date:add-duration - Version 1

Version: 1
Status: new
User Page: index.html
XML Definition: date.add-duration.xml
Function Package: date.add-duration.zip

Function Syntax

string date:add-duration(string, string)

The date:add-duration function returns the duration resulting from adding two durations together.

Both arguments are strings in the format defined for xs:duration in [3.2.6 duration] of [XML Schema Part 2: Datatypes]. If either argument is not in this format, the function returns an empty string ('').

The return value is a string in the format defined for xs:duration in [3.2.6 duration] of [XML Schema Part 2: Datatypes].

The durations can be added by summing the numbers given for each of the components in the durations.

An implementation of this extension function in the EXSLT date namespace must conform to the behaviour described in this document.

Implementations

No XSLT processors that we know of have built-in support for date:add-duration.

There are currently no third-party implementations of date:add-duration.

Change History

Submitted: 2001-05-12
Creator: Jeni Tennison (http://www.jenitennison.com/)

Returns the duration resulting from adding two durations together.

http://www.exslt.org/date/functions/add-duration/date.add-duration.1.html last modified 2001-05-12