Difference between revisions of "Template:Isusdst"

From Geohashing
imported>Tjtrumpet2323
m (New page: {{#switch: {{ #time: m | {{CURRENTTIMESTAMP}} }} | 1 = 0 | 2 = 0 | 3 = {{ #ifexpr: 15 - {{ #time: N | {{CURRENTYEAR}}-{{CURRENTMONTH}}-01 }} > {{ #time: d | {{CURRENTTIMESTAMP}} }} | ...)
 
imported>Tjtrumpet2323
m
Line 26: Line 26:
 
<code><nowiki>{{isusdst}}</nowiki></code>
 
<code><nowiki>{{isusdst}}</nowiki></code>
 
* Returns '''1''' if the United States (specifically its [[Eastern Time|Eastern Time Zone]] are in [[wikipedia:Daylight Saving Time|Daylight Saving Time]], '''0''' if not.
 
* Returns '''1''' if the United States (specifically its [[Eastern Time|Eastern Time Zone]] are in [[wikipedia:Daylight Saving Time|Daylight Saving Time]], '''0''' if not.
** Daylight Saving Time is observed in the United States from 02:00 (local) on the second Sunday in March through 02:00 (local) on the first Sunday in November.
+
** From 2007, Daylight Saving Time is observed in the United States from 02:00 (local) on the second Sunday in March through 02:00 (local) on the first Sunday in November.
 +
** This template only returns the DST value for the current timestamp, and thus only is programmed to handle post-2007 DST rules.
 
</noinclude>
 
</noinclude>

Revision as of 20:15, 26 May 2008

0

Usage

{{isusdst}}

  • Returns 1 if the United States (specifically its Eastern Time Zone are in Daylight Saving Time, 0 if not.
    • From 2007, Daylight Saving Time is observed in the United States from 02:00 (local) on the second Sunday in March through 02:00 (local) on the first Sunday in November.
    • This template only returns the DST value for the current timestamp, and thus only is programmed to handle post-2007 DST rules.