Difference between revisions of "Template:Dow holiday"
From Geohashing
(Add Juneteenth beginning in June 2022, now that it's officially published as an NYSE holiday.) |
(→Notes: be explicit that one-off closures are not handled by this template) |
||
Line 22: | Line 22: | ||
=== Notes === | === Notes === | ||
− | * '''This template is only explicitly valid from 2008 through the reasonably expected future.''' | + | * '''This template is only explicitly valid for regularly-scheduled closures from 2008 through the reasonably expected future.''' |
− | ** | + | ** For example, this template incorporates [https://en.wikipedia.org/wiki/Juneteenth Juneteenth National Independence Day] with effect from June 2022. |
+ | ** However, '''it does ''not'' incorporate one-off closures''' such as those observed: | ||
+ | *** 11–14 September 2001, following terror attacks in the US | ||
+ | *** 29–30 October 2012, in response to Hurricane Sandy | ||
+ | *** 5 December 2018, in observance of President George HW Bush's state funeral | ||
* While NYSE holidays were generally stable for some time before the creation of Geohashing in 2008, this template applies all holidays observed at that time proleptically into the indefinite past. It does not contemplate, for example, when precisely among its various stages of recognition and adoption the NYSE began observing [https://en.wikipedia.org/wiki/Martin_Luther_King_Jr._Day Martin Luther King, Jr. Day]. | * While NYSE holidays were generally stable for some time before the creation of Geohashing in 2008, this template applies all holidays observed at that time proleptically into the indefinite past. It does not contemplate, for example, when precisely among its various stages of recognition and adoption the NYSE began observing [https://en.wikipedia.org/wiki/Martin_Luther_King_Jr._Day Martin Luther King, Jr. Day]. | ||
Latest revision as of 05:53, 5 August 2024
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.
Notes
- This template is only explicitly valid for regularly-scheduled closures from 2008 through the reasonably expected future.
- For example, this template incorporates Juneteenth National Independence Day with effect from June 2022.
- However, it does not incorporate one-off closures such as those observed:
- 11–14 September 2001, following terror attacks in the US
- 29–30 October 2012, in response to Hurricane Sandy
- 5 December 2018, in observance of President George HW Bush's state funeral
- While NYSE holidays were generally stable for some time before the creation of Geohashing in 2008, this template applies all holidays observed at that time proleptically into the indefinite past. It does not contemplate, for example, when precisely among its various stages of recognition and adoption the NYSE began observing Martin Luther King, Jr. Day.