Changes
Jump to navigation
Jump to search
Template:Current hour in time zone (view source)
Revision as of 17:00, 29 September 2012
, 12 years agomoved simplified logic to an 'offset' template; using that template now
<!--This template makes use of other templates and it should never require any changes.
The #iferror check is included to prevent the hour offset (if given instead of
a time zone abbreviation) from being used as the minute offset.
-->{{#time:H|{{Current hour offset in time zone|{{{1|}}}|dst={{{dst|{{{autoDST|}}}}}}}} hours {{#iferror:{{#time:H|-{{{1|0}}} hours}}|{{Current minute offset in time zone|{{{1|}}}}} minutes|}}}}<!--
--><noinclude>
{{documentation}}
[[Category:Date-computing templates based on current time]]</noinclude>
The #iferror check is included to prevent the hour offset (if given instead of
a time zone abbreviation) from being used as the minute offset.
-->{{#time:H|{{Current hour offset in time zone|{{{1|}}}|dst={{{dst|{{{autoDST|}}}}}}}} hours {{#iferror:{{#time:H|-{{{1|0}}} hours}}|{{Current minute offset in time zone|{{{1|}}}}} minutes|}}}}<!--
--><noinclude>
{{documentation}}
[[Category:Date-computing templates based on current time]]</noinclude>