Detecting a US Holiday

前端 未结 5 1605
醉酒成梦
醉酒成梦 2020-12-25 12:27

What\'s the simplest way to determine if a date is a U.S. bank holiday in Python? There seem to be various calendars and webservices listing holidays for various countries,

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-25 13:11

    Make sure date != one of these:

    http://www.buyusa.gov/uk/en/us_bank_holidays.html

提交回复
热议问题