amlich

Converting date between Julian and Lunar calendar

npm install amlich
4 downloads in the last week
10 downloads in the last month

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

npm loves you