Difference between revisions of "Template:DST/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Technical 13
(Syncing with live)
imported>Technical 13
(An improvement...)
 
Line 1: Line 1:
{{#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: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>
+
{{#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>
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Latest revision as of 15:02, 17 January 2015

0

50px Template documentation[view] [edit] [history] [purge]