8000 GitHub - it3cup/TCal: Javascript tools for Chinese Traditional Calendar, 中国农历JS工具 · GitHub
[go: up one dir, main page]

Skip to content
it3cupPublic

About

Javascript tools for Chinese Traditional Calendar, 中国农历JS工具

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

中国传统历法工具类

获取农历和年月日干支,支持从1901年到2100年。

用法

// 为了浏览器兼容请使用格式yyyy/M/d
// 使用 2000/1/1这样的格式而非2000/01/01或者2000-1-1

TCal.get("2000/1/1");

// 返回
{ y: 1999, 
  m: 11, 
  d: 25, 
  yn: "一九九九年", 
  mn: "冬月",
  dn: "廿五",
  ygz: "己卯",
  mgz: "丁丑",
  dgz: "戊午",
  jq: "", //节气
  leap: false ,//是否闰月
  wd: 6,    //周几, 从1开始
  wdn: "周六"}

About

Javascript tools for Chinese Traditional Calendar, 中国农历JS工具

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0