$DATE
- $DATE(format)
+ $HEADING
@@ -348,7 +351,10 @@
$TIME
- $TIME(format)
+ $TITLE
@@ -360,6 +366,47 @@
+The $DATE
and $TIME
header/footer strings support
+an optional format string in parenthesis. Letters represent date/time values
+while other characters are inserted verbatim. The following letters are
+supported:
Letter | Description |
---|---|
A | Full weekday name |
a | Abbreviated weekday name |
B | Full month name |
b | Abbreviated month name |
C | Century (CC) |
c | Default date and time format |
d | Day of the month ("01" to "31") |
e | Day of the month (" 1" to "31") |
F | YYYY-MM-DD |
H | Hours for 24-hour clock ("00" to "23") |
I | Hours for 12-hour clock ("01" to "12") |
j | Day of the year ("001" to "366") |
k | Hours for 24-hour clock (" 0" to "23") |
l | Hours for 12-hour clock (" 1" to "12") |
M | Minutes ("00" to "59") |
m | Month number ("01" to "12") |
p | "am" or "pm" |
R | Hours and minutes ("HH:MM") |
r | Hours, minutes, seconds, and am/pm ("HH:MM:SS am/pm") |
S | Seconds ("00" to "60") |
T | Hours, minutes, and seconds ("HH:MM:SS") |
X | Default time format |
x | Default date format |
Y | Year with century (CCYY) |
y | Year without century (YY) |
Z | Time zone name |
z | Time zone offset from UTC |