https://github.com/codeaholicguy/halunar
Haskell implement of lunar calendar
https://github.com/codeaholicguy/halunar
haskell library lunar-calendar
Last synced: about 1 year ago
JSON representation
Haskell implement of lunar calendar
- Host: GitHub
- URL: https://github.com/codeaholicguy/halunar
- Owner: codeaholicguy
- License: mit
- Created: 2018-02-24T01:53:01.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-19T16:32:17.000Z (over 7 years ago)
- Last Synced: 2025-01-26T16:44:15.134Z (about 1 year ago)
- Topics: haskell, library, lunar-calendar
- Language: Haskell
- Homepage:
- Size: 289 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

A Lunar calendar calculator library written in Haskell.
Another version which is written in JavaScript https://github.com/codeaholicguy/amlich.js/.
### Usage
```hs
calculateLunarDateFromDate :: (Int, Int, Int, Int) -> (Int, Int, Int)
calculateLunarDateFromDate (day, month, year, timeZone) = (lunarDay, lunarMonth, lunarYear)
```
```hs
calculateDateFromLunarDate :: (Int, Int, Int, Int) -> (Int, Int, Int)
calculateDateFromLunarDate (lunarDay, lunarMonth, lunarYear, timeZone) = (day, month, year)
```
### License
[MIT](LICENSE)
### Reference
[Computing the Vietnamese lunar calendar](https://www.informatik.uni-leipzig.de/~duc/amlich/calrules_en.html)
### Special thanks
- The logo is designed by [@reallinfo](https://github.com/reallinfo)