Open main menu

Changes

{{Documentation subpage}}

This template computes the decade for the Gregorian year in parameter.

; Syntax<nowiki>:</nowiki>
: <kbd><nowiki>{{</nowiki>DECADE|</kbd>''year''<kbd>}}</kbd>
* The ''year'' must be astronomical (''year''=1 in [[1 AD]] (''[[Anno Domini]]''), ''year''=0 in 1 BC, ''year''=-1 in 2 BC).

; Examples<nowiki>:</nowiki>
: <kbd><nowiki>{{DECADE|1738}}</nowiki></kbd> returns {{DECADE|1738}}
: <kbd><nowiki>{{DECADE|1900}}</nowiki></kbd> returns {{DECADE|1900}}
: <kbd><nowiki>{{DECADE|1901}}</nowiki></kbd> returns {{DECADE|1901}}
: <kbd><nowiki>{{DECADE|1915}}</nowiki></kbd> returns {{DECADE|1915}}
: <kbd><nowiki>{{DECADE|1962}}</nowiki></kbd> returns {{DECADE|1962}}
: <kbd><nowiki>{{DECADE|1999}}</nowiki></kbd> returns {{DECADE|1999}}
: <kbd><nowiki>{{DECADE|2000}}</nowiki></kbd> returns {{DECADE|2000}}
: <kbd><nowiki>{{DECADE|2001}}</nowiki></kbd> returns {{DECADE|2001}}
: <kbd><nowiki>{{DECADE|2099}}</nowiki></kbd> returns {{DECADE|2099}}
: <kbd><nowiki>{{DECADE|2100}}</nowiki></kbd> returns {{DECADE|2100}}
: <kbd><nowiki>{{DECADE|2101}}</nowiki></kbd> returns {{DECADE|2101}}

; See also<nowiki>:</nowiki>
: [[Template:MILLENNIUM]]
: [[Template:CENTURY]]
: [[Template:YEARCC]]
: [[Template:YEARYY]]
: [[Template:MONTHDAYS]]
: [[Template:IsLeapYear]]
: [[Template:JULIANDAY]]
: [[Template:WEEKDAY]]

<includeonly>
[[Category:Date-computing templates|DECADE]]

</includeonly>
Anonymous user