Template:Dow holiday

From Geohashing

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.

See also

NYSE Calendar