Modules | Implementer Page: date.difference.html 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 Implementations
The following XSLT processors support
Implementations of
|
http://www.exslt.org/date/functions/difference/index.html last modified 2002-11-12