Template:Dow holiday
From Geohashing
Revision as of 18:25, 7 July 2008 by 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 = {{#...)
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 calculationally determined.