Difference between revisions of "Template:Isusdst"

From Geohashing
imported>Tjtrumpet2323
m
imported>Tjtrumpet2323
m
Line 23: Line 23:
 
}}<noinclude>
 
}}<noinclude>
 
== Usage ==
 
== Usage ==
 +
{{intricate}}
 
<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.

Revision as of 02:55, 19 June 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.