## 简要介绍 lunar是一个支持阳历、阴历、佛历和道历的
日历工具库
,它开源免费,有多种开发语言的版本,不依赖第三方,支持阳历、阴历、佛历、道历、儒略日的相互转换,还支持星座、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋、凶煞宜忌、吉神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。仅供参考,切勿迷信。 支持的时间跨度约为0001年至9999年。 github: 1. javascript:[https://github.com/6tail/lunar-javascript](https://github.com/6tail/lunar-javascript)  2. java:[https://github.com/6tail/lunar-java](https://github.com/6tail/lunar-java)  3. c#.net:[https://github.com/6tail/lunar-csharp](https://github.com/6tail/lunar-csharp)  4. php(composer):[https://github.com/6tail/lunar-php](https://github.com/6tail/lunar-php)  5. php(单文件):[https://github.com/6tail/lunar-php-standalone](https://github.com/6tail/lunar-php-standalone)  6. python:[https://github.com/6tail/lunar-python](https://github.com/6tail/lunar-python)  7. go:[https://github.com/6tail/lunar-go](https://github.com/6tail/lunar-go)  8. typescript:[https://github.com/6tail/lunar-typescript](https://github.com/6tail/lunar-typescript)  9. flutter:[https://github.com/6tail/lunar-flutter](https://github.com/6tail/lunar-flutter)  10. swift:[https://github.com/6tail/lunar-swift](https://github.com/6tail/lunar-swift)  gitee: 1. javascript:[https://gitee.com/6tail/lunar-javascript](https://gitee.com/6tail/lunar-javascript) [](https://gitee.com/6tail/lunar-javascript/stargazers) 2. java:[https://gitee.com/6tail/lunar-java](https://gitee.com/6tail/lunar-java) [](https://gitee.com/6tail/lunar-java/stargazers) 3. c#.net:[https://gitee.com/6tail/lunar-csharp](https://gitee.com/6tail/lunar-csharp) [](https://gitee.com/6tail/lunar-csharp/stargazers) 4. php(composer):[https://gitee.com/6tail/lunar-php](https://gitee.com/6tail/lunar-php) [](https://gitee.com/6tail/lunar-php/stargazers) 5. php(单文件):[https://gitee.com/6tail/lunar-php-standalone](https://gitee.com/6tail/lunar-php-standalone) [](https://gitee.com/6tail/lunar-php-standalone/stargazers) 6. python:[https://gitee.com/6tail/lunar-python](https://gitee.com/6tail/lunar-python) [](https://gitee.com/6tail/lunar-python/stargazers) 7. go:[https://gitee.com/6tail/lunar-go](https://gitee.com/6tail/lunar-go) [](https://gitee.com/6tail/lunar-go/stargazers) 8. typescript:[https://gitee.com/6tail/lunar-typescript](https://gitee.com/6tail/lunar-typescript) [](https://gitee.com/6tail/lunar-typescript/stargazers) 9. flutter:[https://gitee.com/6tail/lunar-flutter](https://gitee.com/6tail/lunar-flutter) [](https://gitee.com/6tail/lunar-flutter/stargazers) 10. swift:[https://gitee.com/6tail/lunar-swift](https://gitee.com/6tail/lunar-swift) [](https://gitee.com/6tail/lunar-swift/stargazers) 这里主要提供javascript版本api,其他版本的api也基本保持一致,可融会贯通。 开源协议:MIT License ### 示例 为了证明它的能力,这里直接使用lunar展示一个简单的今日黄历。
五行
冲煞
彭祖
喜神
福神
财神
宜
忌
吉神
凶神
你还可以从左侧菜单中查看更多有趣的示例。 > 节气的计算使用了[寿星天文历](http://www.nongli.net/sxwnl)的算法。由于所有信息来源于网络搜集和我自己的理解,如有错误,还请指正。 ### 联系我 电子邮件:6tail@6tail.cn QQ群:7866820
### 捐赠
> 感谢
捐赠者们
的支持。捐赠前请三思,不要大额捐赠找我帮忙做二次开发,我平时工作也挺忙的。