$time_format
variable
- $time_format
type
- textual
associated template variable
description
This variable specifies the formatting of dates and times on your Vine Type website.
example
$time_format:f
valid values:
- d [Short date pattern]
- D [Long date pattern] (default)
- t [Short time pattern]
- T [Long time pattern]
- f [Full date/time pattern (short time)]
- F [Full date/time pattern (long time)]
- g [General date/time pattern (short time)]
- G [General date/time pattern (long time)]
- m [Month day pattern (same as M)]
- M [Month day pattern (same as m)]
- r [RFC1123 pattern (same as R)]
- R [RFC1123 pattern (same as r)]
- s [Sortable date/time pattern; conforms to ISO 8601]
- u [Universal sortable date/time pattern]
- U [Universal sortable date/time pattern]
- y [Year month pattern (same as Y)]
- Y [Year month pattern (same as y)]
The actual display of dates and times depends on both this $time\_format
value and the $culture
value. Some cultures show months before dates and some show dates before months. Some show AM PM values others display in 24-hour clocks.
Example Date Formats for En-Us Culture
d 1/3/2002
D Thursday, January 03, 2002
f Thursday, January 03, 2002 12:00 AM
F Thursday, January 03, 2002 12:00:00 AM
g 1/3/2002 12:00 AM
G 1/3/2002 12:00:00 AM
m January 03
M January 03
r Thu, 03 Jan 2002 00:00:00 GMT
R Thu, 03 Jan 2002 00:00:00 GMT
s 2002-01-03T00:00:00
t 12:00 AM
T 12:00:00 AM
u 2002-01-03 00:00:00Z
U Thursday, January 03, 2002 8:00:00 AM
y January, 2002
Y January, 2002