ଛାଞ୍ଚ:Current hour in time zone/doc

ଉଇକିପିଡ଼ିଆ ରୁ
Jump to navigation Jump to search

This template gives the current hour in the given time zone in 24-hour format. If no additional parameters are set, it uses {{Daylight saving in time zone}} to automatically adjust the hour according to Daylight Saving Time (DST), if applicable. It can be used in conjunction with {{Current minute in time zone}} to get the current time in a particular time zone. See below for the currently supported time zones.

Usage[ସମ୍ପାଦନା]

pre
{{Current hour in time zone|time zone[|autoDST=no]}}
('[...]' means 'optional', do not include the square brackets when using this template)

where

  • time zone is the desired time zone abbreviation (see below and also the list of time zone abbreviations);
    If no time zone is given or if the given time zone is not supported, then the output will default to the current hour of UTC±0 time;
    In this case, instead of giving a time zone, an offset (e.g. -3, 1, 5, etc.) can also be given to get the current hour of UTC+offset time (which will not be adjusted according to DST);
  • autoDST is an optional parameter to disable automatic Daylight Saving Time adjustment by setting the value to "no";
    If a DST variant of a particular time zone exists, then the time is automatically adjusted according to DST by default.

Supported time zones[ସମ୍ପାଦନା]

Currently the following time zones are supported:

Abbreviations Name Offset (summer) Notes
PT / PST (PDT) Pacific Standard(/Daylight) Time UTC-08:00 (UTC-07:00) When autoDST is not set to "no", the *T, *ST and *DT variants of a particular time zone will produce the same output and can be used interchangeably.

Otherwise (when using autoDST=no), *T and *ST will produce the hour without DST adjustment, and *DT will produce the hour with DST adjustment.

MT / MST (MDT) Mountain Standard(/Daylight) Time UTC-07:00 (UTC-06:00)
CT / CST (CDT) Central Standard(/Daylight) Time UTC-06:00 (UTC-05:00)
ET / EST (EDT) Eastern Standard(/Daylight) Time UTC-05:00 (UTC-04:00)
WET (WEST) Western European (Summer) Time UTC+00:00 (UTC+01:00) When autoDST is not set to "no", both the *ET and *EST variants of a particular time zone will produce the same output and can be used interchangeably.

Otherwise (when using autoDST=no), *ET will produce the hour without DST adjustment, and *EST will produce the hour with DST adjustment.

CET (CEST) Central European (Summer) Time UTC+01:00 (UTC+02:00)
EET (EEST) Eastern European (Summer) Time UTC+02:00 (UTC+03:00)
AWT / AWST Australian Western Standard Time UTC+08:00 When autoDST is not set to "no", the *T, *ST and *DT variants of a particular time zone will produce the same output and can be used interchangeably.

Otherwise (when using autoDST=no), *T and *ST will produce the hour without DST adjustment, and *DT will produce the hour with DST adjustment.

ACT / ACST (ACDT) Australian Central Standard(/Daylight) Time UTC+09:30 (UTC+10:30)
AET / AEST (AEDT) Australian Eastern Standard(/Daylight) Time UTC+10:00 (UTC+11:00)

Examples[ସମ୍ପାଦନା]

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

pre
*{{Current hour in time zone|CET}}

produces

pre
*{{Current hour in time zone|CET|autoDST=no}}

produces

pre
*{{Current hour in time zone|CEST}}

produces

pre
*{{Current hour in time zone|CEST|autoDST=no}}

produces

pre
*{{Current hour in time zone|PT}}

produces

pre
*{{Current hour in time zone|-4}}

produces

pre
*{{Current hour in time zone}}

produces