Watch 1 Star 0 Fork 0

lifankohome / lunarPHPMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Get Lunar Date From Solar Date Easily spread retract

https://www.lifanko.cn/lunar/

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

PHP
1
https://gitee.com/lifanko/lunar.git
git@gitee.com:lifanko/lunar.git
lifanko
lunar
lunar
master

Help Search