Giter VIP home page Giter VIP logo

lunar_calendar_box's Introduction

LUNAR_CALENDAR() LUNAR_CALENDAR(date)

양력 날짜를 음력으로 변환하는 LUNAR_CALENDAR 클래스입니다. date 파라미터를 입력하지 않으면, 현재 시각을 기준으로 생성합니다. 사용 방법은 UPPERCASE-CORE의 CALENDAR와 동일합니다.

LUNAR_CALENDAR 클래스는 양력 날짜를 음력으로 변환하는 동시에, getMonth, getDate, getHour, getMinute, getSecond 함수에 파라미터로 true를 지정하면, '0N'과 같은 형식의 문자열을 반환합니다. (9월인 경우 '09') 이는 2016-09-02과 같은 날짜 형태를 만들 때 유용하게 사용할 수 있습니다.

var
// calendar - 2017년 1월 5일인 경우
lunarCal = LUNAR_CALENDAR();

lunarCal.getYear(); // 2016

lunarCal.getMonth(); // 12
lunarCal.getMonth(true); // '12'

lunarCal.getDate(); // 8
lunarCal.getDate(true); // '08'

라이센스

MIT

작성자

Young Jae Sim

lunar_calendar_box's People

Contributors

yjgaia avatar

Watchers

 avatar  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.