Template:YEAR.UNIX

From MYSTAges
Jump to: navigation, search

2019

Documentation[edit]

This template returns the proleptic year part of the (extrapolated Gregorian calendar) date that a particular Unix timestamp (parameter 1) represents. Unlike {{#time:Y|@[...]}}, this template accepts timestamps for years prior to 1 CE.

This template can be used in conjunction with Template:YEAR.UNIX/NORMALIZE and Template:YEARWITHERA in order to construct a full date and time (excluding weekday) from any given Unix timestamp.

Examples[edit]

Wikitext Output
{{YEAR.UNIX|-154822530122}}
-2937
{{YEARWITHERA|{{YEAR.UNIX|-154822530122}}}}, {{#time:F j, H:i:s e|@{{YEAR.UNIX/NORMALIZE|-154822530122}}}}
2938 BCE, November 14, 13:37:58 UTC
{{YEAR.UNIX|{{UNIX.AY|{{AY.CAVERNIANDATE|233|Leefo|12}}}}}}
-7423