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.


The namespace for EXSLT - Dates and Times is:


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).


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.

   name = qname
   calendar = "gregorian" | qname-but-not-ncname
   lang = language
   first-day-of-week = "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | string />
* old version of element


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.

date:date-time1implementedstring date:date-time()date.date-time.zip
date:date2implementedstring date:date(string?)date.date.zip
date:time2implementedstring date:time(string?)date.time.zip
date:year2implementednumber date:year(string?)date.year.zip
date:leap-year1implementedboolean date:leap-year(string?)date.leap-year.zip
date:month-in-year2implementednumber date:month-in-year(string?)date.month-in-year.zip
date:month-name2implementedstring date:month-name(string?)date.month-name.zip
date:month-abbreviation2implementedstring date:month-abbreviation(string?)date.month-abbreviation.zip
date:week-in-year2*implementednumber date:week-in-year(string?)date.week-in-year.zip
date:day-in-year2implementednumber date:day-in-year(string?)date.day-in-year.zip
date:day-in-month2implementednumber date:day-in-month(string?)date.day-in-month.zip
date:day-of-week-in-month2implementednumber date:day-of-week-in-month(string?)date.day-of-week-in-month.zip
date:day-in-week2implementednumber date:day-in-week(string?)date.day-in-week.zip
date:day-name2implementedstring date:day-name(string?)date.day-name.zip
date:day-abbreviation2implementedstring date:day-abbreviation(string?)date.day-abbreviation.zip
date:hour-in-day2implementednumber date:hour-in-day(string?)date.hour-in-day.zip
date:minute-in-hour2implementednumber date:minute-in-hour(string?)date.minute-in-hour.zip
date:second-in-minute2implementednumber 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.

date:format-date2implementedstring date:format-date(string, string)date.format-date.zip
date:parse-date2implementedstring date:parse-date(string, string)date.parse-date.zip
date:week-in-month3implementednumber date:week-in-month(string?)date.week-in-month.zip
date:difference1implementedstring date:difference(string, string)date.difference.zip
date:add2implementedstring date:add(string, string)date.add.zip
date:add-duration2implementedstring date:add-duration(string, string)date.add-duration.zip
date:sum1implementedstring date:sum(node-set)date.sum.zip
date:seconds1implementednumber date:seconds(string?)date.seconds.zip
date:duration1implementedstring 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