Parts of Dates and Times

Table F-3 describes the codes defined for the different parts of xs:date, xs:dateTime, and xs:time values.

Table F-3. Parts of dates and times
SpecifierMeaningDefault presentation modifier
YYear (absolute value)1
MMonth in year1
DDay in month1
dDay in year1
FDay of weekn
WWeek in year1
wWeek in month1
HHour in day (24 hours)1
hHour in half-day (12 hours)1
Pa.m./p.m. markern
mMinute in hour01
sSecond in minute01
fFractional seconds1
ZTimezone as a time offset from UTC—or if an alphabetic modifier is present, the conventional name of a timezone (such as PST)1
zTimezone as a time offset using GMT—for example, GMT+11
CCalendar: the name or abbreviation of a calendar namen
EEra: the name of a baseline for the numbering of years—for example, the reign of a monarchn

Get XSLT, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.