Template:Dow holiday

From Geohashing
Revision as of 15:43, 17 October 2021 by Tjtrumpet2323 (talk | contribs) (Add Juneteenth beginning in June 2022, now that it's officially published as an NYSE holiday.)

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 from 2008 through the reasonably expected future.
  • 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