GithubHelp home page GithubHelp logo

chuanshuoye / calendar.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jjonline/calendar.js

0.0 1.0 0.0 33 KB

**农历(阴阳历)和西元阳历即公历互转JavaScript库

License: GNU General Public License v3.0

JavaScript 100.00%

calendar.js's Introduction

calendar.js

**农历(阴阳历)和西元阳历即公历互转JavaScript库

介绍

https://blog.jjonline.cn/userInterFace/173.html

使用

/** 公历年月日转农历数据 返回json */
calendar.solar2lunar(1987,11,01);
/** 农历年月日转公历年月日 */
calendar.lunar2solar(1987,9,10);
/**调用以上方法后返回类似如下object(json)具体以上就不需要解释了吧!*/
/** c开头的是公历各属性值 l开头的自然就是农历咯 gz开头的就是天干地支纪年的数据啦~ */
{
    Animal: "兔",
    IDayCn: "初十",
    IMonthCn: "九月",
    Term: null,
    astro: "天蝎座",
    cDay: 1,
    cMonth: 11,
    cYear: 1987,
    gzDay: "甲寅",
    gzMonth: "庚戌",
    gzYear: "丁卯",
    isLeap: false,
    isTerm: false,
    isToday: false,
    lDay: 10,
    lMonth: 9,
    lYear: 1987,
    nWeek: 7,
    ncWeek: "星期日"
}
/** 该代码还有其他可以调用的方法,请自己查看代码中的详细注释 */

calendar.js's People

Contributors

jjonline avatar consatan avatar panjp-git avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.