Query Lunar Calendar Time
Query Lunar Calendar Time
GET /misc/lunartime - Query Lunar Calendar Time
Need the lunar-calendar information for a specific timestamp in a given time zone? This endpoint returns the full result directly.
Overview
Accepts a Unix timestamp (seconds or milliseconds) plus an IANA time-zone name and returns the Gregorian time, weekday, lunar year/month/day, ganzhi (sexagenary cycle), Chinese zodiac, solar terms, and festivals. When ts is omitted the current time is used; when timezone is omitted Asia/Shanghai is used.
Time-zone notes
- Standard IANA time zones such as Asia/Shanghai and Asia/Tokyo are supported.
- Aliases such as Shanghai and Beijing are also accepted.
- An invalid time zone returns 400 with invalid timezone: xxx.