Template:Get-year: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly>{{#ifeq:"{{lc:{{{1|1900}}}}}"|"{{Four digit|{{#expr:{{{1|1900}}}}}}}"|{{{1|1900}}}|{{#time:Y|{{{1|November 1, 1900}}} }}}}</includeonly&..." |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:"{{lc:{{{1|1900}}}}}"|"{{Four digit|{{#expr:{{{1|1900}}}}}}}"|{{{1|1900}}}|{{#time:Y|{{{1|November 1, 1900}}} }}}}</includeonly><noinclude> | |||
'''Purpose''': Given a plain text date, returns the year. accepts ISO8601, a variety of date formats as well as year only specification of date. | '''Purpose''': Given a plain text date, returns the year. accepts ISO8601, a variety of date formats as well as year only specification of date. | ||
Line 5: | Line 5: | ||
[[Category:Date mathematics templates]] | [[Category:Date mathematics templates]] | ||
</noinclude> |
Latest revision as of 16:05, 10 October 2010
Purpose: Given a plain text date, returns the year. accepts ISO8601, a variety of date formats as well as year only specification of date.
Limitations: does understand BC/ AD and may not deliver accurate results for single digit dates.