Skip to main content

a calendar about china

Project description

china-calendar

PyPI - Python Version PyPI PyPI - Downloads PyPI - License GitHub release GitHub Stars

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

类似的库:

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)

Uploaded Source

Built Distribution

china_calendar-1.0.1-py2.py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 2 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