Difference between revisions of "Template:Isusdst"

From Geohashing
imported>Tjtrumpet2323
m
imported>Tjtrumpet2323
m
Line 24: Line 24:
 
== Usage ==
 
== Usage ==
 
<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.
 
** From 2007, Daylight Saving Time is observed in the United States from 02:00 local (07:00 UTC) on the second Sunday in March through 02:00 local (06:00 UTC) on the first Sunday in November.
 
** From 2007, Daylight Saving Time is observed in the United States from 02:00 local (07:00 UTC) on the second Sunday in March through 02:00 local (06:00 UTC) 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.
 
** 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:17, 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 (07:00 UTC) on the second Sunday in March through 02:00 local (06:00 UTC) 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.