1 Star 0 Fork 0

lifankohome / lunar

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

LunarJS

Get Lunar Date Easily.

Time Limit: 1900-2100

Quick Start

const lunar = new Lunar(2020, 1, 1);

console.log(lunar.info);

Output:

date: {year: 2019, month: 12, day: 7, string: "腊月初七"}
leap: {leapMonth: false, leapDays: false}
nextYear: 24
yearDays: 354

Functions

  • lunar.yearDays(y):
    • Return how many days of 'y'
  • lunar.monthDays(y,m):
    • Return how many days of 'y,m'
  • lunar.leapMonth(y):
    • Return the leap month of 'y', return false if no leap month
  • lubar.leapDays(y):
    • Return how many days of leap month of 'y', return false if no leap month

Comments ( 0 )

Sign in for post a comment

About

Get Lunar Date From Solar Date Easily spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
PHP
1
https://gitee.com/lifanko/lunar.git
git@gitee.com:lifanko/lunar.git
lifanko
lunar
lunar
master

Search