a calendar about china
Project description
china-calendar
a calendar about china
判断某一天是否为工作日或者是法定节假日,仅适用于中国
安装
pip install china-calendar
使用示例:
import china_calendar
# 清明节
assert china_calendar.is_holiday('2024-04-04') == True
assert china_calendar.is_workday('2024-04-04') == False
类似的库:
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
china-calendar-1.0.1.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for china_calendar-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbaaf1d07b65b48a04bc61f79d89c1c8c3ecb8a7e86ac7f3bc95b5f6d5a7fef9 |
|
MD5 | 3ca4b01afc62f8c576ba1d8f17efd2a9 |
|
BLAKE2b-256 | d19bed6f0f70a136e52a882b2aac4259a2a1957210fa69a2d759e8926580695e |