lunar

2023-01-01

java

人,现在最年轻啦。因为比起明天来,今天是年轻的。对于一个人来说,什么时候都是现在最年轻。──永六辅

lunar是一个支持阳历、阴历、佛历和道历的日历工具库,它开源免费,有多种开发语言的版本,不依赖第三方,支持阳历、阴历、佛历、道历、儒略日的相互转换,它能用来制作日历,甚至算命。

除此之外,还支持星座、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋、凶煞宜忌、吉神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。

支持的时间跨度约为0001年至9999年。

地址:https://6tail.cn/calendar/api.html

github:

  1. javascript:https://github.com/6tail/lunar-javascript github stars
  2. java:https://github.com/6tail/lunar-java github stars
  3. c#.net:https://github.com/6tail/lunar-csharp github stars
  4. php(composer):https://github.com/6tail/lunar-php github stars
  5. php(单文件):https://github.com/6tail/lunar-php-standalone github stars
  6. python:https://github.com/6tail/lunar-python github stars
  7. go:https://github.com/6tail/lunar-go github stars
  8. typescript:https://github.com/6tail/lunar-typescript github stars
  9. flutter:https://github.com/6tail/lunar-flutter github stars
  10. oc/swift(网友开源):https://github.com/HouHangLei/Lunar-iOS github stars

gitee:

  1. javascript:https://gitee.com/6tail/lunar-javascript star
  2. java:https://gitee.com/6tail/lunar-java star
  3. c#.net:https://gitee.com/6tail/lunar-csharp star
  4. php(composer):https://gitee.com/6tail/lunar-php star
  5. php(单文件):https://gitee.com/6tail/lunar-php-standalone star
  6. python:https://gitee.com/6tail/lunar-python star
  7. go:https://gitee.com/6tail/lunar-go star
  8. typescript:https://gitee.com/6tail/lunar-typescript star
  9. flutter:https://gitee.com/6tail/lunar-flutter star

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