Template:Dst/doc

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:24, 17 October 2024 (Created page with "{{Documentation}} This template determines whether daylight saving time is currently in effect. === Syntax === <pre>{{dst|rule|datetime}}</pre> === Usage === This template determines whether daylight saving time is currently in effect. Since DST starts and ends at different times for different locations, three DST rules are supported: one for the US/Canada, one for Europe (which uses the same rule throughout), and one for Australia..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is a documentation subpage for Template:Dst.
It contains usage information, categories, and other content that is not part of the original template page.

This template determines whether daylight saving time is currently in effect.

Syntax

{{dst|rule|datetime}}

Usage

This template determines whether daylight saving time is currently in effect. Since DST starts and ends at different times for different locations, three DST rules are supported: one for the US/Canada, one for Europe (which uses the same rule throughout), and one for Australia, excluding Tasmania (which is on a slightly different rule).

In North America and Australia, time switches between DST and standard at a certain local time, so this template may be a few hours early or late to update depending on your location. Time changes in all of Europe at 1:00 UTC, so this isn't an issue there.

Depending on the DST rule desired, "us", "uk", "aus" or "none" should be given as parameter to this template (defaults to "us").

By default, the DST given is for the current data and time. If the DST for a different datetime is desired, then this can be obtained by specifying the datetime string.