Difference between revisions of "Template:Countdown/sandbox"
From Detective Conan Wiki
m (Incorporating hours) |
m |
||
Line 9: | Line 9: | ||
{{#expr: floor(( | {{#expr: floor(( | ||
{{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ( | {{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ( | ||
− | {{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600 | + | {{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600)}} |
− | |||
) / 86400)}} | 1 | ) / 86400)}} | 1 | ||
| day | | day | ||
Line 17: | Line 16: | ||
<!-- Hours --> | <!-- Hours --> | ||
− | '''{{expr: floor(( | + | '''{{#expr: floor(( |
− | + | {{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ( | |
− | + | {{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} -(86400*floor( | |
+ | {{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ( | ||
+ | {{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}}) | ||
+ | }} | ||
+ | )/86400)))/3600 | ||
+ | ) | ||
{{#ifeq: | {{#ifeq: |