publish_time.year
Previous
Top
Next
A string variable containing the year when the article was published.
The format is:
yyyy
Where
yyyy
are the digits for the year.
Example
The following displays the year when the article was posted immediately after "Posted in the year":
Posted in the year {{publish_time.year}}.
For an article posted on Wednesday, February 18, 2004 at 19:23:26 Eastern Standard Time, the above would cause "2004" to be displayed.