Modules | Version: 1 Function Syntaxstring date:difference(string, string) Template Syntax<xsl:call-template name="date:difference"> <xsl:with-param name="start" select="string" /> <xsl:with-param name="end" select="string" /> </xsl:call-template>
The The two dates must both be right-truncated date/time strings in one of the formats defined in [XML Schema Part 2: Datatypes]. The date/time with the most specific format (i.e. the least truncation) is converted into the same format as the date with the most specific format (i.e. the most truncation). The permitted formats are as follows, from most specific to least specific:
If either of the arguments is not in one of these formats,
The difference between the date/times is returned as a string in the format defined for
If the date/time string with the least specific format is in either
Otherwise, the number of years and months in the duration string must be equal to zero. (The format of the string will be An implementation of this extension function in the EXSLT date namespace must conform to the behaviour described in this document. Implementations
Built-in support for
The following implementations of
Change HistorySubmitted: 2001-05-12
|
http://www.exslt.org/date/functions/difference/date.difference.1.html last modified 2002-11-12