Skip to main content

check if some day is holiday in China

Project description

Package Travis License README

判断某年某月某一天是不是工作日/节假日。 目前支持 2016 年至 2018年。 兼容 Python2 与 Python3.

安装

pip install chinese calendar

样例

import datetime

from chinese_calendar.utils import is_workday, is_holiday

march_first = datetime.date(2017, 5, 1)

print(is_workday(march_first))  # False

print(is_holiday(march_first))  # True

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

chinesecalendar-0.0.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file chinesecalendar-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for chinesecalendar-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 54d2bf79b813d1e4194bb5d9636a55d52d2758a3a7d4e02b09736fa1dd83bb48
MD5 e7132fc5c094297b301bb17ea065d54f
BLAKE2b-256 4ec523adf1c0a068ea132f3ca8e2f8715d950e0bd8d29a2d5794ba7b6e61bc50

See more details on using hashes here.

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