Calendar API and Libraries
APIs/lookup table to convert different calendars. Data here is based on:
Calendar Conversion
Get the lookup table for the given year.
https://api.standardtable.com/lookup/calendar/<Source Calendar>/<Destination Calendar>/<year>.json- Origin Calendar - Source Calendar ('gregorian' or 'chinese')
- Destination Calendar - Destination Calendar ('gregorian' or 'chinese')
- year - Year (1900 to 2200)
e.g. Convert a Gregorian date in 1965 to Chinese Date
https://api.standardtable.com/lookup/calendar/gregorian/chinese/1965.json
Calendar Localization
Get text/localization text for the IDs.
https://api.standardtable.com/lookup/calendar/<Calendar>/localization.json- Calendar - Calendar ('chinese')
e.g. Get chinese/english text of month and BaZi terms
https://api.standardtable.com/lookup/calendar/chinese/localization.json
Moon Phases
Get the list of moon phases for the given Gregorian year.
https://api.standardtable.com/lookup/calendar/gregorian/moonphase/<year>.json- year - Gregorian Year (1900 to 3000)
https://api.standardtable.com/lookup/calendar/gregorian/moonphase/1965.json
Solar Term
Get the list of 24 Chinese Solar terms for the given Gregorian year.
https://api.standardtable.com/lookup/calendar/gregorian/solarterm/<year>.json- year - Gregorian Year (1900 to 3000)
https://api.standardtable.com/lookup/calendar/gregorian/moonphase/1965.json
Libraries
JS library for converting to and from Chinese Calendar Date. BaZi computations included.
https://api.standardtable.com/lib/calendar/chinese.js