Difference between revisions of "User:AvidConanContributor/sandbox"
From Detective Conan Wiki
m |
m |
||
| 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 | ||