Template:Current hour offset in time zone/doc

{{#if:{{{1|}}}||{{Documentation subpage}} This template gives the current hour offset from UTC time for the given time zone.

If the  parameter is not used, it uses {{tl|Daylight saving in time zone}} to automatically adjust the offset according to daylight saving time (DST), if applicable.

This template can be used in conjunction with {{tl|Current minute offset in time zone}} to calculate the current time in a particular time zone. See below for the currently supported time zones.

Usage
{{Current hour offset in time zone|time zone[ |dst=no] }}
 * ( means optional, do not include the square brackets when using this template)

where If no time zone is given or if the given time zone is not supported, then the output will default to 0; In this case, instead of giving a time zone, an offset (e.g. -3, 1, 5, etc.) can also be given; This exact offset will then be used as the output (this functionality is merely included for template compatibility); If a DST variant of a particular time zone exists, then the time is automatically adjusted according to DST by default.
 * time zone is the desired time zone abbreviation (see below and also the list of time zone abbreviations);
 * is an optional parameter to disable automatic daylight saving time adjustment by setting the value to "no";

Supported time zones
Currently the following time zones are supported:}} {{#if:{{{1|}}}||

Examples
(You may want to this page to update the output.)

produces

produces

produces

produces

produces

produces

produces

Related templates
}}