1.0.6 • Published 6 years ago

amlich.js v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

amlich.js

Version

A Vietnamese lunar calendar calculator library written in JavaScript.

Another version which is written in Haskell https://github.com/codeaholicguy/halunar.

Usage

computeDateToLunarDate(dd, mm, yy, timeZone) 
computeDateFromLunarDate(lunarDay, lunarMonth, lunarYear, lunarLeap, timeZone)

Example:

const {computeDateToLunarDate} = require('amlich.js')

console.log(computeDateToLunarDate(18, 7, 2018, 7))
// { lunarDay: 6, lunarMonth: 6, lunarYear: 2018, lunarLeap: false }

License

MIT

Reference

Computing the Vietnamese lunar calendar

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago