Skip to main content

查询某天是否放假

Project description

CNHoliday: 查询某天是否放假

数据来源: http://www.gov.cn/zhengce/content/2018-12/06/content_5346276.htm

用法:

from cnholiday import CNHoliday


cnholiday = CNHoliday()
_day = datetime(2019, 10, 1)
print(cnholiday.check(_day))
print(cnholiday.check_shift(_day))
print(cnholiday.check_shift(_day, shift=2))
print(cnholiday.check_shift(_day, shift=3))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cnholiday-0.1.1a0.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

cnholiday-0.1.1a0-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page