Difference between revisions of "Template:Time"
Jump to navigation
Jump to search
(End of DST adjustment) |
|||
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|12:{{{2}}} pm|{{#ifexpr: {{#expr:{{{1}}}-5}} <0|{{#expr:12+({{{1}}}-5)}}:{{{2}}} pm|{{#ifexpr: {{#expr:{{{1}}}-5}} =0|12:{{{2}}} am|{{#expr:{{{1}}}-5}}:{{{2}}} am}}}}}}}} | <includeonly><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|{{#ifexpr: {{#expr:{{{1}}}-5}} <0|{{#expr:12+({{{1}}}-5)}}:{{{2}}} pm|{{#ifexpr: {{#expr:{{{1}}}-5}} =0|12:{{{2}}} am|{{#expr:{{{1}}}-5}}:{{{2}}} am}}}}}}}} | ||
Pacific Time: {{#ifexpr: {{#expr:{{{1}}}-8}} >12|{{#expr: {{#expr:{{{1}}}-8}}-12}}:{{{2}}} pm|{{#ifexpr: {{#expr:{{{1}}}-8}} =12|12:{{{2}}} pm|{{#ifexpr: {{#expr:{{{1}}}-8}} <0|{{#expr:12+({{{1}}}-8)}}:{{{2}}} pm|{{#ifexpr: {{#expr:{{{1}}}-8}} =0|12:{{{2}}} am|{{#expr:{{{1}}}-8}}:{{{2}}} am}}}}}}}}"> {{{1}}}:{{{2}}}</abbr> | Pacific Time: {{#ifexpr: {{#expr:{{{1}}}-8}} >12|{{#expr: {{#expr:{{{1}}}-8}}-12}}:{{{2}}} pm|{{#ifexpr: {{#expr:{{{1}}}-8}} =12|12:{{{2}}} pm|{{#ifexpr: {{#expr:{{{1}}}-8}} <0|{{#expr:12+({{{1}}}-8)}}:{{{2}}} pm|{{#ifexpr: {{#expr:{{{1}}}-8}} =0|12:{{{2}}} am|{{#expr:{{{1}}}-8}}:{{{2}}} am}}}}}}}}"> {{{1}}}:{{{2}}}</abbr></includeonly><noinclude> | ||
<noinclude> | |||
[[Category:Templates]] | [[Category:Templates]] | ||
==Usage== | ==Usage== |
Latest revision as of 23:21, 14 March 2018
Usage
Shows the corresponding time in the US Eastern and Pacific time zones on hover.
Parameters
{{Time|17|30}}
The first variable is the hour and the second one is the minute (in UTC).