Node:Format, Next:Time, Previous:timestamp, Up:timestamp
The pattern string specifies how the time should be formatted.
It is a subset of the format used by the
java.text.SimpleDateFormat class in Java.
In the pattern, unquoted alphabetical letters ('A' to 'Z' and
'a' to 'z') are processed as a time component. All other characters
are literals, and are copied to the output unchanged. Text inside
single-quotes (') are also treated as literals. To
output a single-quote, use two consecutive single-quotes.
The recognised time components are shown below. All other letters are
reserved, and should not be used. (For debugging purposes, they
generate a # in the output).
G
AD)
y
M
D
d
H
k
K
h
m
s
S
a
z
UTC or +-dd:dd
Z
The number of times a letter is repeated determines the minimum width of that field. Numeric fields are left padded with zeros to meet the minimum width. The width has no effect if the value is already equal to or greater than the minimum width. The width also has no effect on non-numeric values (namely G, a, z and Z).
These examples are for 5:29:59pm on the 30th of June, 2002:
"yyyy-M-d" => 2002-06-30 "yyyy-MM-dd'T'HH:mm:ss" => 2002-06-30T17:29:59 "yyyy.M.d HH:mm" => 2002.6.30 17:29 "yyyy.MM.dd hh:mma" => 2002.06.30 05:29PM "d/m/yy h:mm:ssa" => 30/6/02 5:29:59PM