实现算命测八字获取节日的工具类-Lunar

lunar是一个无依赖的支持阳历和阴历的日历工具库,它开源免费,有javascript、java、c#、php、python、go、typescript版本,不依赖第三方,支持阳历阴历互转,它能用来制作日历,甚至算命。

目前支持公历和农历、星座、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋、凶煞宜忌、吉神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道黑道日及吉凶等。

支持的时间跨度:1901-01-01(庚子年冬月十一)至2099-12-31(己未年冬月二十)。

github:

  1. javascript:https://github.com/6tail/lunar-javascript 
  2. java:https://github.com/6tail/lunar-java 
  3. c#.net:https://github.com/6tail/lunar-csharp 
  4. php:https://github.com/6tail/lunar-php 
  5. python:https://github.com/6tail/lunar-python 
  6. go:https://github.com/6tail/lunar-go 
  7. typescript:https://github.com/6tail/lunar-typescript 

gitee:

  1. javascript:https://gitee.com/6tail/lunar-javascript 
  2. java:https://gitee.com/6tail/lunar-java 
  3. c#.net:https://gitee.com/6tail/lunar-csharp 
  4. php:https://gitee.com/6tail/lunar-php 
  5. python:https://gitee.com/6tail/lunar-python 
  6. go:https://gitee.com/6tail/lunar-go 
  7. typescript:https://gitee.com/6tail/lunar-typescript 

这里仅提供javascript版本api,其他版本的api也基本保持一致,可融会贯通。

开源协议:MIT License

Lunar网址:http://6tail.cn/calendar/api.html#overview.html

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值