Difference between revisions of "Template:Current minute in time zone"

From blackwiki
Jump to navigation Jump to search
imported>Thayts
(-IST due to abbr. collisions)
imported>Thayts
(moved logic to an 'offset' template; using that template now)
Line 1: Line 1:
{{#switch:{{uc:{{{1|}}}}}
+
<!--This template makes use of another template and it should never require any changes.
<!--Hawaii Standard Time-->
+
 
|HST
+
-->{{#time:i|{{Current minute offset in time zone|{{{1|}}}}} minutes}}<!--
<!--Hawaii-Aleutian Time-->
+
 
|HAT|HAST|HADT
+
--><noinclude>
<!--Alaska Time-->
 
|AKT|AKST|AKDT
 
<!--Pacific Time (Northern America)-->
 
|PT|PST|PDT
 
<!--Mountain Time (Northern America)-->
 
|MT|MST|MDT
 
<!--Central Time (Northern America)-->
 
|CT|CST|CDT
 
<!--Eastern Time (Northern America)-->
 
|ET|EST|EDT
 
<!--Atlantic Time-->
 
|AT|AST|ADT=
 
{{#time:i}}
 
<!--Newfoundland Time-->
 
|NT|NST|NDT=
 
{{#time:i|-30 minutes}}
 
<!--Greenwich Mean Time / British Summer Time (same as WET / WEST)-->
 
|GMT|BST
 
<!--Western European Time-->
 
|WET|WEST
 
<!--Central European Time-->
 
|CET|CEST
 
<!--Eastern European Time-->
 
|EET|EEST
 
<!--Australian Western Time-->
 
|AWT|AWST=
 
{{#time:i}}
 
<!--Australian Central Time-->
 
|ACT|ACST|ACDT=
 
{{#time:i|30 minutes}}
 
<!--Australian Eastern Time-->
 
|AET|AEST|AEDT
 
<!--Korea Standard Time-->
 
|KST
 
<!--Japan Standard Time-->
 
|JST
 
<!--New Zealand Time-->
 
|NZT|NZST|NZDT=
 
{{#time:i}}
 
<!--default (UTC+0:offset)-->
 
|{{#iferror:{{#time:i|{{{1|0}}} minutes}}|{{#time:i}}|{{#time:i|{{{1|0}}} minutes}}}}
 
}}<noinclude>
 
 
{{documentation}}
 
{{documentation}}
 
[[Category:Date-computing templates based on current time]]</noinclude>
 
[[Category:Date-computing templates based on current time]]</noinclude>

Revision as of 16:05, 29 September 2012

12

Template documentation[view] [edit] [history] [purge]

This template gives the current minute in the given time zone.

It makes use of {{Current minute offset in time zone}}.

This template can be used in conjunction with {{Current hour in time zone}} to get the current time in a particular time zone. See below for the currently supported time zones.

Usage

{{Current minute in time zone|''time zone''}}

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 minute of UTC±0 time;
    In this case, instead of giving a time zone, an offset (e.g. 30, 45, etc.) can also be given to get the current minute of UTC+00:offset time.

Supported time zones

Currently the following time zones are supported:

SDT - Abbreviations - DST Name SDT - Script error: No such module "Purge". - DST Notes
HST Hawaii Standard Time UTC10:00 The minute of standard time does not differ from the minute of daylight saving time (DST; if applicable).
HAT or HAST HADT Hawaii-Aleutian Standard/Daylight Time UTC10:00 UTC09:00
AKT or AKST AKDT Alaska Standard/Daylight Time UTC09:00 UTC08:00
PT or PST PDT Pacific Standard/Daylight Time UTC08:00 UTC07:00
MT or MST MDT Mountain Standard/Daylight Time UTC07:00 UTC06:00
SKT or SKST Saskatchewan Standard Time UTC06:00
CT or CST CDT Central Standard/Daylight Time UTC06:00 UTC05:00
ET or EST EDT Eastern Standard/Daylight Time UTC05:00 UTC04:00
AT or AST ADT Atlantic Standard/Daylight Time UTC04:00 UTC03:00
NT or NST NDT Newfoundland Standard/Daylight Time UTC03:30 UTC02:30
GMT BST Greenwich Mean Time /
British Summer Time
UTC+00:00 UTC+01:00
WET WEST Western European (Summer) Time UTC+00:00 UTC+01:00
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 or AWST Australian Western Standard Time UTC+08:00
ACT or ACST ACDT Australian Central Standard/Daylight Time UTC+09:30 UTC+10:30
AET or AEST AEDT Australian Eastern Standard/Daylight Time UTC+10:00 UTC+11:00
KST Korea Standard Time UTC+09:00
JST Japan Standard Time UTC+09:00
NZT or NZST NZDT New Zealand Standard/Daylight Time UTC+12:00 UTC+13:00

Time zone map

UTC hue4map X world Robinson - explicit offsets.png

Examples

(You may want to Script error: No such module "Purge". this page to update the output.)


*{{Current minute in time zone|CET}}

produces

  • 12


*{{Current minute in time zone|ACT}}

produces

  • 42


*{{Current minute in time zone|NT}}

produces

  • 42


*{{Current minute in time zone|45}}

produces

  • 57


*{{Current minute in time zone}}

produces

  • 12


*{{Current hour in time zone|ACT}}:{{Current minute in time zone|ACT}}

produces

  • 15:42

Related templates

Current time

Current offset

Daylight savings