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