真太阳时换算 · True solar time
true_solar_timeConvert historical local wall-clock time (Gregorian or explicit lunar/leap-month input) using the selected place: remove daylight saving, apply longitude correction (4 minutes per degree relative to the standard meridian), then equation of time. The Xiaodao engine uses the actual instant for equation of time in both hemispheres, with no half-year shift. Longitude and birth date are unchanged. Returns minute-resolution true solar time, historical zone/offset, DST and Zi-hour policy. Repeated clock times require an explicit occurrence; nonexistent times are rejected. earlyLateZi is optional and defaults to false (day changes at 23:00, same as the Xiaodao website default). Missing boundary choices return needs_input. No pillars or lunar date are returned; the Zi-hour policy does not change the displayed solar date. Gregorian date range: 1801-01-01 through 2099-12-31. 公历日期范围:1801-01-01 至 2099-12-31。 Lunar input is checked after conversion to Gregorian. 农历输入先换成公历再查。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Birth date, YYYY-MM-DD, in the selected calendar. | |
| time | Yes | Local wall-clock time, HH:MM. | |
| placeId | Yes | Birth place ID returned by search_birth_place. | |
| calendar | No | Gregorian (SOLAR) or Chinese lunar (LUNAR) input. Lunar input requires an explicit isLeapMonth. | SOLAR |
| language | No | en | |
| earlyLateZi | No | Optional Zi-hour convention. Default false: the day changes at 23:00 true solar time (same as the Xiaodao website default). true keeps the same day until 00:00. | |
| isLeapMonth | No | Required for LUNAR input: whether the supplied lunar month is a leap month. | |
| daylightSaving | No | Only supply a user-selected DST choice when the local time occurs twice. | |
| boundaryChoices | No | User choices for returned time boundaries: SAME uses this time; OTHER uses the other side. |