# EXSLT - Dates and Times - Implementer Page

Version: 1 User Page: index.html XML Definition: date.xml Module Package: date.zip EXSLT - Dates and Times covers date and time-related extension elements and functions. Many of the functions in this module use strings in the formats specified by the date and time-related data types defined in [XML Schema Part 2: Datatypes]. The extension elements and functions defined within this document are governed by the general rules about extensions to XSLT covered in [14. Extensions] in [XSLT 1.0]. XSLT processors are free to support any number of the extension elements and functions described in this document. However, an XSLT processor must not claim to support EXSLT - Dates and Times unless all the core extensions described within this document are implemented by the processor. An implementation of an extension element or function in an EXSLT namespace must conform to the behaviour described in this document. Using EXSLT will only make your stylesheet portable amongst the implementations that support EXSLT. Note that there is no requirement for XSLT processors that are compliant to XSLT to support the extensions described within EXSLT. ## Namespace The namespace for EXSLT - Dates and Times is:
    http://exslt.org/dates-and-times
Throughout this document, the prefix `date` is used to refer to this namespace. Any other prefix can be used within a particular stylesheet (though a prefix must be specified to enable the extension functions to be recognised as extensions). ## Elements ### Other Elements The following extension elements are not considered stable and are not part of the core of EXSLT - Dates and Times. Processors that claim support of EXSLT - Dates and Times might not support these elements.
Element | Version | Status | Syntax | Download
--- | --- | --- | --- | ---
date:date-format | 1 | new |
    <date:date-format
       name = qname
       calendar = "gregorian" | qname-but-not-ncname
       lang = language
       first-day-of-week = "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | string />
| date.date-format.zip
* old version of element
## Functions ### Core Functions The following extension functions are considered stable and are core to EXSLT - Dates and Times. Processors that claim support of EXSLT - Dates and Times must support these functions.
Function | Version | Status | Syntax | Download
--- | --- | --- | --- | ---
date:date-time | 1 | implemented | string date:date-time() | date.date-time.zip
date:date | 2 | implemented | string date:date(string?) | date.date.zip
date:time | 2 | implemented | string date:time(string?) | date.time.zip
date:year | 2 | implemented | number date:year(string?) | date.year.zip
date:leap-year | 1 | implemented | boolean date:leap-year(string?) | date.leap-year.zip
date:month-in-year | 2 | implemented | number date:month-in-year(string?) | date.month-in-year.zip
date:month-name | 2 | implemented | string date:month-name(string?) | date.month-name.zip
date:month-abbreviation | 2 | implemented | string date:month-abbreviation(string?) | date.month-abbreviation.zip
date:week-in-year | 2* | implemented | number date:week-in-year(string?) | date.week-in-year.zip
date:day-in-year | 2 | implemented | number date:day-in-year(string?) | date.day-in-year.zip
date:day-in-month | 2 | implemented | number date:day-in-month(string?) | date.day-in-month.zip
date:day-of-week-in-month | 2 | implemented | number date:day-of-week-in-month(string?) | date.day-of-week-in-month.zip
date:day-in-week | 2 | implemented | number date:day-in-week(string?) | date.day-in-week.zip
date:day-name | 2 | implemented | string date:day-name(string?) | date.day-name.zip
date:day-abbreviation | 2 | implemented | string date:day-abbreviation(string?) | date.day-abbreviation.zip
date:hour-in-day | 2 | implemented | number date:hour-in-day(string?) | date.hour-in-day.zip
date:minute-in-hour | 2 | implemented | number date:minute-in-hour(string?) | date.minute-in-hour.zip
date:second-in-minute | 2 | implemented | number date:second-in-minute(string?) | date.second-in-minute.zip
* old version of function
### Other Functions The following extension functions are not considered stable and are not part of the core of EXSLT - Dates and Times. Processors that claim support of EXSLT - Dates and Times might not support these functions.
Function | Version | Status | Syntax | Download
--- | --- | --- | --- | ---
date:format-date | 2 | implemented | string date:format-date(string, string) | date.format-date.zip
date:parse-date | 2 | implemented | string date:parse-date(string, string) | date.parse-date.zip
date:week-in-month | 3 | implemented | number date:week-in-month(string?) | date.week-in-month.zip
date:difference | 1 | implemented | string date:difference(string, string) | date.difference.zip
date:add | 2 | implemented | string date:add(string, string) | date.add.zip
date:add-duration | 2 | implemented | string date:add-duration(string, string) | date.add-duration.zip
date:sum | 1 | implemented | string date:sum(node-set) | date.sum.zip
date:seconds | 1 | implemented | number date:seconds(string?) | date.seconds.zip
date:duration | 1 | implemented | string date:duration(number?) | date.duration.zip
* old version of function
## Change History Submitted: 2001-05-12 Creator: Jeni Tennison A module of date and time-related functions.

http://www.exslt.org/date/date.html last modified 2001-05-12