Difference between revisions of "Template:Dow holiday"

From Geohashing
imported>Tjtrumpet2323
(New page: <includeonly>{{#vardefine:date|2010-04-02}}{{#ifexpr: {{#time:N|{{#var:date}}}} <= 5 | {{#vardefine:weekday|1}} | {{#vardefine:weekday|0}} }}{{#switch: {{#time:m|{{#var:date}}}} | 1 = {{#...)
 
imported>Tjtrumpet2323
m
Line 19: Line 19:
 
* Returns '''1''' if the date passed is a [[Dow holiday]]; '''0''' otherwise.
 
* Returns '''1''' if the date passed is a [[Dow holiday]]; '''0''' otherwise.
 
** Weekends return 0 and are not treated as holidays, as they can be programmatically handled by other templates.
 
** Weekends return 0 and are not treated as holidays, as they can be programmatically handled by other templates.
** All holidays are calculationally determined.
+
** All holidays are systematically and calculationally determined.
  
 
== See also ==
 
== See also ==
 
[http://www.nyse.com/about/newsevents/1176373643795.html?sa_campaign=/internal_ads/callouts/holidays NYSE Calendar]
 
[http://www.nyse.com/about/newsevents/1176373643795.html?sa_campaign=/internal_ads/callouts/holidays NYSE Calendar]
 
</noinclude>
 
</noinclude>

Revision as of 19:21, 8 July 2008

Usage

{{Dow holiday|2008-11-27}}

  • Date must be passed in YYYY-MM-DD format.
  • Returns 1 if the date passed is a Dow holiday; 0 otherwise.
    • Weekends return 0 and are not treated as holidays, as they can be programmatically handled by other templates.
    • All holidays are systematically and calculationally determined.

See also

NYSE Calendar