Difference between revisions of "Template:Age"
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</i...") |
m (documentation) |
||
Line 1: | Line 1: | ||
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly> | <includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude> | ||
'''Syntax:'''<br> | |||
Years between 2 given dates: <nowiki>{{age|year1|month1|day1|year2|month2|day2}}</nowiki><br> | |||
Years between given date and current date: <nowiki>{{age|year1|month1|day1}}</nowiki>[[Category: Date computing templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 12:30, 13 January 2015
Syntax:
Years between 2 given dates: {{age|year1|month1|day1|year2|month2|day2}}
Years between given date and current date: {{age|year1|month1|day1}}