Metadata-Version: 2.4
Name: korean_lunar_calendar
Version: 0.3.1
Summary: Korean Lunar Calendar
Home-page: https://github.com/usingsky/korean_lunar_calendar_py
Author: Jinil Lee
Author-email: usingsky@gmail.com
Maintainer: Jinil Lee
Maintainer-email: usingsky@gmail.com
License: MIT
Keywords: calendar,korean,lunar
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: maintainer
Dynamic: maintainer-email
Dynamic: summary

korean\_lunar\_calendar\_py
===========================

한국 양음력 변환

Overview
^^^^^^^^

Here is a library to convert Korean lunar-calendar to Gregorian
calendar.

Korean calendar and Chinese calendar is same lunar calendar but have
different date.

This follow the KARI(Korea Astronomy and Space Science Institute)

한국 양음력 변환 (한국천문연구원 기준) - 네트워크 연결 불필요

음력 변환은 1000년 01월 01일 부터 2050년 11월 18일까지 지원
양력 변환은 1000년 02월 13일 부터 2050년 12월 31일까지 지원

::

    Gregorian calendar (1000-02-13 ~ 2050-12-31) <--> Korean lunar-calendar (1000-01-01 ~ 2050-11-18)

Install
^^^^^^^

pip install korean\_lunar\_calendar

To use
^^^^^^

(0) import module

    .. code:: python

        from korean_lunar_calendar import KoreanLunarCalendar

(1) Korean Solar Date -> Korean Lunar Date (양력 -> 음력)

    .. code:: python

        calendar = KoreanLunarCalendar()
        # params : year(년), month(월), day(일)
        calendar.setSolarDate(2017, 6, 24)
        # Lunar Date (ISO Format)
        print(calendar.LunarIsoFormat())
        # Korean GapJa String
        print(calendar.getGapJaString())
        # Chinese GapJa String
        print(calendar.getChineseGapJaString())

::

    [Result]
    2017-05-01 Intercalation
    정유년 병오월 임오일 (윤월)
    丁酉年 丙午月 壬午日 (閏月)

(2) Korean Lunar Date -> Korean Solar Date (음력 -> 양력)

    .. code:: python

        # params : year(년), month(월), day(일), intercalation(윤달여부)
        calendar.setLunarDate(1956, 1, 21, False)
        # Solar Date (ISO Format)
        print(calendar.SolarIsoFormat())
        # Korean GapJa String
        print(calendar.getGapJaString())
        # Chinese GapJa String
        print(calendar.getChineseGapJaString())

::

    [Result]
    1956-03-03
    병신년 경인월 기사일
    丙申年 庚寅月 己巳日

