Mlp logo.png Congratulations /mlp/! Mlp logo.png
Winners of the 2024 4chan Spring Babby Cup

Difference between revisions of "Template:Time"

From Rigged Wiki
Jump to navigation Jump to search
m (late DST adjustments)
(test)
Line 1: Line 1:
<abbr style="border-bottom: 1px dotted #000; background: #f1f1f1;" title="Eastern Time: {{#ifexpr: {{#expr:{{{1}}}-5}} >12|{{#expr: {{#expr:{{{1}}}-5}}-12}}:{{{2}}}pm|{{#ifexpr: {{#expr:{{{1}}}-5}} =12|{{#expr:{{{1}}}-5}}:{{{2}}}pm|{{#expr:{{{1}}}-5}}:{{{2}}}am}}}}
<abbr style="border-bottom: 1px dotted #000; background: #f1f1f1;" title="Eastern Time: {{#ifexpr: {{#expr:{{{1}}}-5}} >12|{{#expr: {{#expr:{{{1}}}-5}}-12}}:{{{2}}}pm|{{#ifexpr: {{#expr:{{{1}}}-5}} =12|12:{{{2}}}pm|{{#expr:{{{1}}}-5}}:{{{2}}}am}}}}
&#13;Pacific Time: {{#ifexpr: {{#expr:{{{1}}}-8}} >12|{{#expr: {{#expr:{{{1}}}-8}}-12}}:{{{2}}}pm|{{#ifexpr: {{#expr:{{{1}}}-8}} =12|{{#expr:{{{1}}}-8}}:{{{2}}}pm|{{#expr:{{{1}}}-8}}:{{{2}}}am}}}}"> {{{1}}}:{{{2}}}</abbr>
&#13;Pacific Time: {{#ifexpr: {{#expr:{{{1}}}-8}} >12|{{#expr: {{#expr:{{{1}}}-8}}-12}}:{{{2}}}pm|{{#ifexpr: {{#expr:{{{1}}}-8}} =12|12:{{{2}}}pm|{{#expr:{{{1}}}-8}}:{{{2}}}am}}}}"> {{{1}}}:{{{2}}}</abbr>


<noinclude>
<noinclude>

Revision as of 04:56, 15 February 2015

<abbr style="border-bottom: 1px dotted #000; background: #f1f1f1;" title="Eastern Time: Expression error: Unexpected < operator. &#13;Pacific Time: Expression error: Unexpected < operator."> {{{1}}}:{{{2}}}

Usage:

To show time zones on hover

Parameters

{{Time|17|30}}

1st variable is the hour and 2nd is the minute (in UTC)