Gregorian to Lunar Date
astroway_chinese_lunar_dateConverts a Gregorian date to its Chinese lunar month, day, and leap-month status, and returns that year's Chinese New Year date.
Instructions
Chinese lunar month and day for a Gregorian date, including leap-month detection, plus the Chinese New Year of that year.
[Group: Chinese: Zodiac & Feng Shui] [Endpoint: POST /v1/chinese/lunar-date] [Required: date] [Cost: 10 credits (Tier 1)]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| time | No | ||
| language | No | ||
| timezone | No | IANA zone name such as Europe/Kyiv, or auto to look the zone up from latitude and longitude. The server takes the offset that zone kept at this local date and time, summer time included, and uses it in place of timezoneOffset. A clock time that happened twice takes the first occurrence; one skipped when clocks went forward takes the offset from before the change. Abbreviations such as EST are refused. Before 1970 the tz database is not reliable for every place, so send timezoneOffset when the local clock is known. | |
| timezoneOffset | No | Hours from UTC at the given moment, not minutes. Fractional zones are hours too: 5.5 for India, 5.75 for Nepal, -3.5 for Newfoundland. Defaults to 0, meaning UTC. Ignored when timezone is sent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lunar | No | ||
| gregorianDate | No | ||
| chineseNewYear | No |