User:AvidConanContributor/sandbox: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#expr: | {{#expr: | ||
<!-- Basic year subtraction --> | |||
{{#time: Y|{{{2}}} }} - {{#time: Y|{{{1}}} }} }} - | {{#time: Y|{{{2}}} }} - {{#time: Y|{{{1}}} }} }} - | ||
<!-- Comparing the months --> | <!-- Comparing the months --> | ||
{{#ifexpr: {{#time: n|{{{2}}} }} = {{#time: n|{{{1}}} }} | {{#ifexpr: {{#time: n|{{{2}}} }} = {{#time: n|{{{1}}} }} | ||
| <!-- Comparing the days --> | | <!-- Comparing the days --> | ||
{{#ifexpr: {{#time: j|{{{2}}} }} >= {{#time: j|{{{1 | {{#ifexpr: {{#time: j|{{{2}}} }} >= {{#time: j|{{{1}}} }} | ||
| 0 | | 0 | ||
| 1 | | 1 | ||
Revision as of 17:44, 19 April 2025
YearsBetween
20 -
0
}}