Difference between revisions of "Template:Countdown/sandbox"
From Detective Conan Wiki
m (Testing floor function) |
m |
||
Line 4: | Line 4: | ||
<!-- Days --> | <!-- Days --> | ||
− | '''{{#expr: floor(({{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ( | + | '''{{#expr: floor(({{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ( |
− | + | {{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600)}}) / 86400)}}''' | |
− | |||
{{#ifeq: | {{#ifeq: | ||
− | {{#expr: | + | {{#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 | ||
Line 16: | Line 15: | ||
| days | | days | ||
}} | }} | ||
− | </div | + | </div></includeonly> |