Skip to main content


Project description

CNHoliday: 查询某天是否放假



from cnholiday import CNHoliday

cnholiday = CNHoliday()
_day = datetime(2019, 10, 1)
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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page