1lunar

查询中国农历日期。将公历日期转换为农历年、月、日、节气等。使用场景:用户问'今天是农历多少'、'查询2024年春节是哪天'、'2024年中秋节对应的公历日期'等。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "1lunar" with this command: npx skills add mysunsi/1lunar

中国农历查询

使用 chinese-lunar-calendar npm 包进行公历与农历的相互转换。

安装

首次使用需安装依赖:

cd /tmp && npm install chinese-lunar-calendar

查询公历对应的农历

# 查询公历日期对应的农历
node -e "
const { getLunar } = require('/tmp/node_modules/chinese-lunar-calendar/src/lunar_calendar.js');
const result = getLunar(2024, 1, 15);
console.log('公历 2024-01-15 => 农历:', result.lunarYear + result.lunarMonth + '月' + result.lunarDate + '日');
console.log('完整信息:', JSON.stringify(result, null, 2));
"

返回字段说明:

  • lunarYear - 农历年(甲子年格式,如"癸卯年")
  • lunarMonth - 农历月份
  • lunarDate - 农历日期
  • isLeap - 是否闰月
  • zodiac - 生肖
  • solarTerm - 节气(如有)
  • dateStr - 简写(如"腊月初五")

常用节日查询

农历节日公历参考(2024年)
春节2024-02-10
元宵节2024-02-24
清明节2024-04-04
端午节2024-06-10
中秋节2024-09-17
重阳节2024-10-11

示例对话

用户: "今天农历几号?"

# 获取今天日期
node -e "
const { getLunar } = require('/tmp/node_modules/chinese-lunar-calendar/src/lunar_calendar.js');
const today = new Date();
const result = getLunar(today.getFullYear(), today.getMonth() + 1, today.getDate());
console.log('今天是农历: ' + result.lunarYear + result.lunarMonth + '月' + result.lunarDate + '日 (' + result.zodiac + '年)');
"

用户: "2024年春节是哪天?"

# 春节是农历正月初一
# 反查:2024年正月初一对应的公历
# 已知2024年春节是2024-02-10
echo "2024年春节: 2024-02-10 (癸卯年正月初一)"

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

GigaChat (Sber AI) Proxy

Integrate GigaChat (Sber AI) with OpenClaw via gpt2giga proxy

Registry SourceRecently Updated
3600smvlx
General

TencentCloud Video Face Fusion

通过提取两张人脸核心特征并实现自然融合,支持多种风格适配,提升创意互动性和内容传播力,广泛应用于创意营销、娱乐互动和社交分享场景。

Registry SourceRecently Updated
General

TencentCloud Image Face Fusion

图片人脸融合(专业版)为同步接口,支持自定义美颜、人脸增强、牙齿增强、拉脸等参数,最高支持8K分辨率,有多个模型类型供选择。

Registry SourceRecently Updated
General

YoudaoNote News

有道云笔记资讯推送:基于收藏笔记分析关注话题,推送最新相关资讯。支持对话触发与每日定时推送(如早上9点)。触发词:资讯推送、设置资讯推送、生成资讯推送。

Registry SourceRecently Updated
1.5K1lephix