Added two new named date formats: day+year and day-short+year.
1 parent 50d3774 commit 52eb58bd716eadd0fbae8bd1006996f92f90fa77
Nigel Stanger authored on 5 Aug 2013
Showing 1 changed file
View
8
generate_calendar_dates.php
'day+long-name' => [FNn] [D] [MNn] (e.g., Friday 10 August)
'day+short-name' => [FNn,*-3] [D] [MNn] (e.g., Fri 10 August)
'day' => [D] [MNn] (e.g., 10 August)
'day-short' => [D] [MNn,*-3] (e.g., 10 Aug)
'day+year' => [D] [MNn], [Y] (e.g., 10 August, 2013)
'day-short+year' => [D] [MNn,*-3], [Y] (e.g., 10 Aug, 2013)
'ISO' => [Y0001]-[M01]-[D01] (e.g., 2012-08-10)
date picture string => Any valid XSLT date picture specification (see http://www.w3.org/TR/xslt20/#date-picture-string).
@offset: A signed offset specified as an XSLT duration, e.g., "P1D" for plus one day, "-P4D" for minus four days.
<xsl:text>[D] [MNn]</xsl:text>
</xsl:when>
<xsl:when test="@format = 'day-short'">
<xsl:text>[D] [MNn,*-3]</xsl:text>
</xsl:when>
<xsl:when test="@format = 'day+year'">
<xsl:text>[D] [MNn], [Y]</xsl:text>
</xsl:when>
<xsl:when test="@format = 'day-short+year'">
<xsl:text>[D] [MNn,*-3], [Y]</xsl:text>
</xsl:when>
<xsl:when test="@format = 'ISO'">
<xsl:text>[Y0001]-[M01]-[D01]</xsl:text>
</xsl:when>