Difference between revisions of "Template:Countdown/sandbox"
From Detective Conan Wiki
m |
m (Testing floor function) |
||
Line 2: | Line 2: | ||
<!-- Debugging --> | <!-- Debugging --> | ||
<!-- No active debugging tests --> | <!-- No active debugging tests --> | ||
+ | |||
+ | <!-- Days --> | ||
+ | '''{{#expr: floor(({{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ({{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600)}}) / 86400)}}''' | ||
'''{{#expr: ceil(({{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ({{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600)}}) / 86400)}}''' | '''{{#expr: ceil(({{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ({{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600)}}) / 86400)}}''' |