lunardate

1.0.12 • Public • Published

lunardate

Thi is the javascript library to convert date to lunar date and vice versa.

installation

 
    npm install lunardate
 

Usages

convert from solar date to lunar date

 
import {convertSolar2Lunar} from "lunardate"
 
const lunarDate = convertSolar2Lunar(20, 5, 1990);
 
console.log(lunarDate)
 
// output will give below result
// { year: 1990, month: 4, day: 26, isLeafYear: false }
 

Credit

This library using the source from https://www.informatik.uni-leipzig.de/~duc/amlich/ with few small modification

Readme

Keywords

Package Sidebar

Install

npm i lunardate

Weekly Downloads

19

Version

1.0.12

License

MIT

Unpacked Size

26.4 kB

Total Files

22

Last publish

Collaborators

  • samuraitruong