Template:Time zone/utc dst offset link/doc: Difference between revisions

From Wikipedia, the free encyclopedia

Content deleted Content added


 

 

Line 47: Line 47:

{{Sandbox other||

{{Sandbox other||

<!– Categories below this line –>

<!– Categories below this line –>

[[Category:tz database templates|utc dst offset link]]

}}

}}


Latest revision as of 05:50, 14 December 2025

This template maps time zones to the linked UTC offset of their daylight saving time (DST), or of their standard time if the time zone observes the same year-round offset, from tz database. The output is formatted in “+HH:mm” or “−HH:mm”, linked to a UTC offset article. The offsets are stored in {{Time zone/utc dst offset}}.

{{Time zone/utc dst offset link}} has one required positional parameter for timezone name from tz database. For example:

  • {{Time zone/utc dst offset link|America/New_York}} → −04:00
  • {{Time zone/utc dst offset link|Europe/Berlin}} → +02:00
  • {{Time zone/utc dst offset link|Australia/Sydney}} → +11:00

For time zones that do not observe DST, the results are the same as from {{Time zone/utc offset link}}:

  • {{Time zone/utc dst offset link|Pacific/Honolulu}} → −10:00
  • {{Time zone/utc dst offset link|Asia/Singapore}} → +08:00

For invalid timezone names:

Maps time zones to the linked UTC offset of their daylight saving time (DST), or of their standard time if the time zone observes the same year-round offset, from tz database.

Template parameters

This template prefers inline formatting of parameters.

Parameter Description Type Status
Timezone name 1

Time zone name as defined in the tz database

Example
Europe/London
String required

Sub templates store data from the tz database and some related information. These examples are accurate as of version 2025c of the database.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top