- Added day-short date format.
1 parent bad13f7 commit ffa51138d625bf36cccb5a13346c5005973cbefb
nstanger authored on 14 Jun 2012
Showing 1 changed file
View
4
generate_calendar_dates.php
@format: How to format the date.
'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)
'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>[FNn,*-3] [D] [MNn]</xsl:text>
</xsl:when>
<xsl:when test="@format = 'day'">
<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 = 'ISO'">
<xsl:text>[Y0001]-[M01]-[D01]</xsl:text>
</xsl:when>