python calendar with holidays [duplicate]

♀尐吖头ヾ 提交于 2020-06-12 04:12:10

问题


Possible Duplicate:
Holiday Calendars, File Formats, et al.

Hi,

Is there a calendar library in Python with which I can check for holidays, compute the number of business days from two dates (accounting for holidays in between)?

I'd love it if it is parameterized for the nation (e.g. US, Japan, etc) so that the holidays are counted for different countries differently.

Thanks,


回答1:


Here are a couple of other StackOverflow questions whose answers may help you on your quest:

  • Holiday Calendars, File Formats, et al.
  • Business days in Python


来源:https://stackoverflow.com/questions/5682771/python-calendar-with-holidays

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!