Difference between revisions of "Template:Time"
Jump to navigation
Jump to search
AmandaBynes (talk | contribs) |
AmandaBynes (talk | contribs) (am+pm, because that's how murica does it) |
||
Line 1: | Line 1: | ||
<abbr style="border-bottom: 1px dotted #000; background: #f1f1f1;" title="Eastern Time: {{#ifexpr: {{#expr:{{{1}}}-5}} >13|{{#expr: {{#expr:{{{1}}}-5}}-12}}:{{{2}}}pm|{{#expr:{{{1}}}-5}}:{{{2}}}}} | <abbr style="border-bottom: 1px dotted #000; background: #f1f1f1;" title="Eastern Time: {{#ifexpr: {{#expr:{{{1}}}-5}} >13|{{#expr: {{#expr:{{{1}}}-5}}-12}}:{{{2}}}pm|{{#expr:{{{1}}}-5}}:{{{2}}}am}} | ||
Pacific Time: {{#ifexpr: {{#expr:{{{1}}}-8}} >13|{{#expr: {{#expr:{{{1}}}-8}}-12}}:{{{2}}}pm|{{#expr:{{{1}}}-8}}:{{{2}}}}} | Pacific Time: {{#ifexpr: {{#expr:{{{1}}}-8}} >13|{{#expr: {{#expr:{{{1}}}-8}}-12}}:{{{2}}}pm|{{#expr:{{{1}}}-8}}:{{{2}}}am}}"> {{{1}}}:{{{2}}}</abbr> | ||
<noinclude> | <noinclude> |
Revision as of 20:47, 7 February 2014
<abbr style="border-bottom: 1px dotted #000; background: #f1f1f1;" title="Eastern Time: Expression error: Unexpected < operator. 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)