1
0
mirror of synced 2026-03-24 21:08:34 +08:00

Initial commit

This commit is contained in:
6tail
2018-06-23 17:22:52 +08:00
commit 34cf0e494a
6 changed files with 959 additions and 0 deletions

38
README.md Normal file
View File

@@ -0,0 +1,38 @@
# lunar [![License](https://img.shields.io/badge/license-MIT-4EB1BA.svg?style=flat-square)](https://github.com/6tail/lunar-javascript/blob/master/LICENSE)
lunar is a calendar library for Solar and Chinese Lunar.
[简体中文](https://github.com/6tail/lunar-javascript/blob/master/README_ZH.md)
## Example
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script src="lunar.js"></script>
<script>
var solar = Solar.fromYmd(2016,9,8);
console.log(solar.toFullString());
console.log(solar.getLunar().toFullString());
</script>
</body>
</html>
```
Output:
2016-09-08 闰年 星期四 处女座
丙申年捌月初八 猴年 北方玄武 斗木獬
## Documentation
Please visit [http://6tail.cn/calendar/api.html](http://6tail.cn/calendar/api.html "http://6tail.cn/calendar/api.html")
## Contact
<a target="_blank" href="https://jq.qq.com/?_wv=1027&k=5F9Pbf0"><img border="0" src="http://pub.idqqimg.com/wpa/images/group.png" alt="lunar" title="lunar"></a>