Check if some day is holiday in china.
Project description
中国节假日
判断某年某月某一天是不是工作日/节假日。
修改自chinese_calendar:
github: chinese-calendar , pypi: chinese-calendar
在chinese_calendar的基础上增加了从2001到2003年的数据。
增加了A股交易日和公历农历干支转换相关函数(日期参数均可传字符串或整数格式):
get_recent_workday:最近的工作日
get_next_nth_workday:往后(前)推n个工作日
get_work_dates:取指定起止日期内的工作日列表
is_tradeday:判断是否为沪深A股交易日
get_recent_tradeday:最近交易日
get_next_nth_tradeday:往后(前)推n个交易日
get_trade_dates:取指定起止日期内的交易日期(周内的工作日)列表
get_xingzuo:获取日期所属星座
get_tgdz_year:计算(农历)年份天干地支
gen2lun:公历日期转农历日期
lun2gen:农历日期转普通日期(日期只能传字符串格式,形如'2023.02.30')
gen2gz:公历日期转干支纪日法
get_tgdz_hour:公历时间(小时)转干支纪时法
get_bazi:根据公历时间生成八字
get_bazi_lunar:根据农历时间生成八字(时间只能传字符串格式,形如'2023.02.30 19:30:20'分和秒可以不写)
fate_weight:称命,传入公历时间
fate_weight_lunar:称命,传入农历时间(时间只能传字符串格式,形如'2023.02.30 19:30:20'分和秒可以不写)
zodiac_match:生肖合婚信息
get_zodiac_match:根据公历时间获取生肖合婚信息
get_zodiac_match_lunar:根据农历时间获取生肖合婚信息(时间只能传字符串格式,形如'2023.02.30 19:30:20'时分秒可以不写)
安装:
pip install chncal --upgrade
Github:
Pypi
感谢使用和支持!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chncal-2.3.1.tar.gz.
File metadata
- Download URL: chncal-2.3.1.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5384f48dea4884e64a4a8d9951b4fd48119676e907c1fbc9c0cde05b5ec226a
|
|
| MD5 |
9ca3e5e81b22a3ee8af0c399ffb94ca0
|
|
| BLAKE2b-256 |
f12de6fc21f86f7c91cbd3161866091118fb9aefb9d5caa6f9dcd7e1f7b2a730
|
File details
Details for the file chncal-2.3.1-py3-none-any.whl.
File metadata
- Download URL: chncal-2.3.1-py3-none-any.whl
- Upload date:
- Size: 1.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1487fb116cb858233e83232a00d8991ef1efa6fc15cc20a5edc82ada4359d24
|
|
| MD5 |
e3aec0c157bbd3ed317d8d726ca9b947
|
|
| BLAKE2b-256 |
4a0b75a19270aa2f10cf0b76ef8076e03e9a3c43439642d1504fd50c643e336f
|