查询某天是否放假
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for cnholiday-0.1.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94bccc7ae525f7098ea9886d151bc034594517352e4b51bd1f92ad856f774908 |
|
MD5 | 7c82a38e73963c1adbff20257af71925 |
|
BLAKE2b-256 | 43b043205585c8ec8d6bc03669a70ad6efece3a9ffd36fa372e9499af84955d7 |