datetime.solar_to_lunar
Converts a solar date in YYYY-MM-DD format into lunar year, month, day, and leap-month status for dates from 2020-01-25 to 2031-01-22; returns an error outside this range.
Instructions
양력 날짜를 음력 년·월·일(lunar_year, lunar_month, lunar_day)과 윤달 여부 is_leap 으로 바꾼다. 입력은 YYYY-MM-DD 이고 내장 조견표의 음력 20202030년에 해당하는 2020-01-252031-01-22 만 지원하며 범위 밖은 오류이다. 그 밖의 연도 음력 계산에는 쓸 수 없다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| solar_date | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| is_leap | Yes | ||
| lunar_day | Yes | ||
| lunar_year | Yes | ||
| lunar_month | Yes |