Difference between revisions of "Template:DST/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Technical 13
(Create sandbox version of Template:DST)
 
imported>Technical 13
(An improvement...)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#switch:{{#expr:{{#time:G|{{Trunc|{{Time/Helper|{{{1|UTC}}}}}|5}}}}-{{#time:G}}-24}}
+
{{#iferror:{{#expr:{{#time:G|now (UTC)}}-{{#time:G|now ({{{1|UTC}}})}}-{{#time:I|now ({{{1|UTC}}})}}}}|{{#ifexpr:{{#time:U|{{Trunc|{{Time/Helper|{{{1|UTC}}}}}|{{#invoke:string|len|{{#time:H:i, F j, Y}}}}}}}} < {{#time:U|{{Trunc|{{Time/Helper|UTC}}|{{#invoke:string|len|{{#time:H:i, F j, Y}}}}}}}}|{{#expr:0-{{#ifexpr:24-(({{#time:U|{{Trunc|{{Time/Helper|{{{1|UTC}}}}}|5}}}}-{{#time:U|{{Trunc|{{Time/Helper|UTC}}|5}}}})/3600)<=-24|-500|24}}-(({{#time:U|{{Trunc|{{Time/Helper|{{{1|UTC}}}}}|5}}}}-{{#time:U|{{Trunc|{{Time/Helper|UTC}}|5}}}})/3600)}}|+{{#expr:(({{#time:U|{{Trunc|{{Time/Helper|{{{1|UTC}}}}}|5}}}}-{{#time:U|{{Trunc|{{Time/Helper|UTC}}|5}}}})/3600)}}}}}}<noinclude>
|{{#expr:{{#time:G|{{Trunc|{{Time/Helper|{{{1|UTC}}}}}|5}}}}-{{#time:G}}}}
+
{{Documentation}}</noinclude>
|-24=+{{#expr:{{#time:G|{{Trunc|{{Time/Helper|{{{1|UTC}}}}}|5}}}}-{{#time:G}}}}
 
|#default={{#expr:{{#time:G|{{Trunc|{{Time/Helper|{{{1|UTC}}}}}|5}}}}-{{#time:G}}-24}}}}
 

Latest revision as of 15:02, 17 January 2015

0