Difference between revisions of "Template:Years Difference"
Jump to navigation
Jump to search
(Created page with "<noinclude>'''This calculates the difference between two dates.'''<br/> '''Usage:'''<br/> <nowiki>{{</nowiki>{{PAGENAME}} |from|to}}</noinclude><includeonly>{{#expr: trunc {{#...") |
|||
Line 1: | Line 1: | ||
<noinclude>'''This calculates the difference between two dates.'''<br/> | <noinclude>'''This calculates the difference between two dates.'''<br/> | ||
'''Usage:'''<br/> | '''Usage:'''<br/> | ||
− | <nowiki>{{</nowiki>{{PAGENAME}} |from|to}}</noinclude><includeonly>{{#expr: trunc {{#expr: {{#expr: {{#time: U | {{ | + | <nowiki>{{</nowiki>{{PAGENAME}} |from|to}}</noinclude><includeonly>{{#expr: trunc {{#expr: {{#expr: {{#time: U | {{{1|}}} }} - {{#time: U | {{{2|}}} }} }}/(365.25*24*60*60)}} }}</includeonly> |
Latest revision as of 05:39, 4 October 2014
This calculates the difference between two dates.
Usage:
{{Years Difference |from|to}}