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.
Specifier | Meaning | Default presentation modifier |
Y | Year (absolute value) | 1 |
M | Month in year | 1 |
D | Day in month | 1 |
d | Day in year | 1 |
F | Day of week | n |
W | Week in year | 1 |
w | Week in month | 1 |
H | Hour in day (24 hours) | 1 |
h | Hour in half-day (12 hours) | 1 |
P | a.m./p.m. marker | n |
m | Minute in hour | 01 |
s | Second in minute | 01 |
f | Fractional seconds | 1 |
Z | Timezone as a time offset from UTC—or if an alphabetic modifier is present, the conventional name of a timezone (such as PST) | 1 |
z | Timezone as a time offset using GMT—for example, GMT+1 | 1 |
C | Calendar: the name or abbreviation of a calendar name | n |
E | Era: the name of a baseline for the numbering of years—for example, the reign of a monarch | n |
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.