Difference between revisions of "User:AvidConanContributor/sandbox"
From Detective Conan Wiki
m |
|||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
| − | {{#expr: | + | {{#ifexpr: {{#time:U|{{{2}}} }} - {{#time:U|{{{1}}} }} < 0 |
| − | <!-- Basic year subtraction --> | + | | '''Error:''' DateTime2 is earlier than DateTime1 |
| − | + | | {{#expr: | |
| − | + | <!-- Basic year subtraction --> | |
| − | + | {{#time: Y|{{{2}}} }} - {{#time: Y|{{{1}}} }} - | |
| − | + | <!-- Comparing the months --> | |
| − | + | {{#ifexpr: {{#time: n|{{{2}}} }} = {{#time: n|{{{1}}} }} | |
| − | + | | <!-- Comparing the days --> | |
| − | + | {{#ifexpr: {{#time: j|{{{2}}} }} >= {{#time: j|{{{1}}} }} | |
| − | + | | 0 | |
| − | + | | 1 | |
| − | + | }} <!-- End of day comparison --> | |
| − | + | | {{#ifexpr: {{#time: n|{{{2}}} }} > {{#time: n|{{{1}}} }} | |
| + | | 0 | ||
| + | | 1 | ||
| + | }} | ||
}} | }} | ||
| − | + | }}</includeonly><noinclude> <!-- {| class="infobox" style="width: 285px; text-align: left; font-size: 90%;" cellpadding="2" | |
| − | }}</includeonly><noinclude> <!-- {| class="infobox" style="width: 285px; text-align: left; font-size: 90%;" cellpadding="2" | ||
|- | |- | ||
| colspan="2" style="color: #ffffff; text-align:center; vertical-align:middle; height:28px; font-size: medium; background-color: #2e51a2;" | '''{{{name}}}''' | | colspan="2" style="color: #ffffff; text-align:center; vertical-align:middle; height:28px; font-size: medium; background-color: #2e51a2;" | '''{{{name}}}''' | ||