Hồ Ngọc Đức Lunar Calendar (Am lich) running i Nodejs
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
tests
.gitignore
.travis.yml
README.md
index.js
package.json

README.md

amlich

build status

Hồ Ngọc Đức Lunar Calendar (Am lich) running i Nodejs

Go to the link bellow for more detail http://www.informatik.uni-leipzig.de/~duc/amlich/

Functions

jdFromDate(dd, mm, yyyy)

Calculate Julian day number (the number of days between 1/1/4713 BC (Julian calendar) and dd/mm/yyyy)

jdToDate(jd)

Convert a Julian day number to day/month/year

convertLunar2Solar(lunarDay, lunarMonth, lunarYear, lunarLeap, timeZone)

Convert a lunar date to the corresponding solar date

convertSolar2Lunar(dd, mm, yyyy, timeZone)

Comvert solar date dd/mm/yyyy to the corresponding lunar date