Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
chinese-permanent-calendar
Advanced tools
Chinese permanent calendar
这是一个通过python查询中国万年历相关信息的的包,可以根据阳历日期或阴历日期查询,查询范围从1970-01-01到2099-12-31,返回结果包括:
import chinese_permanent_calendar as calendar
import datetime
# 根据阳历日期得到阴历日期的详情
date = datetime.date(2020, 1, 1)
luner_date = calendar.get_lunar_by_gregorian(date)
print("阳历:", luner_date.name, "阴历:", luner_date['LunarDate'])
# 根据阴历得到阳历日期及当天的详情
gregorian_date = calendar.get_gregorian_by_lunar(luner_date['LunarDate'])
# 得到所有节日包含国庆节的日期
date = calendar.get_days_by_festival(['国庆节'])
# 得到所有的日期数据
all_data = calendar.get_all_data(start=datetime.date(2020, 1, 1), end=datetime.date(2020, 2, 1))
属性 | 含义 |
---|---|
GregorianDateTime | 阳历日期 |
LunarDateTime | 阴历日期 |
LJie | 阴历节日 |
GJie | 阳历节日 |
Yi | 宜 |
Ji | 忌 |
ShenWei | 神位 |
Taishen | 胎神 |
Chong | 冲 |
SuiSha | 岁煞 |
WuxingJiazi | 五行甲子年 |
WuxingNaYear | 五行纳音-年 |
WuxingNaMonth | 五行纳音--月 |
WuxingNaDay | 五行纳音-日 |
MoonName | 月相 |
XingEast | 东方星座-28星宿 |
XingWest | 西方星座-12星座 |
PengZu | 彭祖百忌 |
JianShen | 十二建星 |
TianGanDiZhiYear | 天干地支-奶牛 |
TianGanDiZhiMonth | 天干地支-月 |
TianGanDiZhiDay | 天干地支-日 |
LMonthName | 农历-月份别名 |
LYear | 阴历-年 |
LMonth | 阴历-月 |
LDay | 阴历-日 |
SolarTermName | 节气 |
GYear | 阳历-年 |
GMonth | 阳历-月 |
GDay | 阳历-日 |
is_weekend | 是否为周末 |
is_weekday | 是否为工作日 |
FAQs
Information about Chinese perpetual calendar
We found that chinese-permanent-calendar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.