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}} - ({{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600)}}) / 86400)}}'''
+
'''{{#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)}}'''
 
 
{{#ifeq:
 
{{#ifeq:
   {{#expr: ceil((
+
   {{#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><!-- Need to figure out how to add optional parameters--></includeonly>
+
</div></includeonly>

Revision as of 03:46, 1 January 2025