Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
korean-lunar-calendar
Advanced tools
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
๋ณ์ ๋
๊ฒฝ์ธ์ ๊ธฐ์ฌ์ผ
ไธ็ณๅนด ๅบๅฏ
ๆ ๅทฑๅทณๆฅ
FAQs
Korean Lunar Calendar
We found that korean-lunar-calendar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.