zl程序教程

您现在的位置是:首页 >  其他

当前栏目

lunar

2023-02-19 12:20:08 时间

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

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

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

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

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

github:

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

gitee:

  1. javascript:https://gitee.com/6tail/lunar-javascript
  1. java:https://gitee.com/6tail/lunar-java
  1. c#.net:https://gitee.com/6tail/lunar-csharp
  1. php(composer):https://gitee.com/6tail/lunar-php
  1. php(单文件):https://gitee.com/6tail/lunar-php-standalone
  1. python:https://gitee.com/6tail/lunar-python
  1. go:https://gitee.com/6tail/lunar-go
  1. typescript:https://gitee.com/6tail/lunar-typescript
  1. flutter:https://gitee.com/6tail/lunar-flutter

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