AstroWay/api v2.173.1 · es
todos los sistemas funcionando con normalidad
// astrology api · POST /v1/chinese/true-solar-time

True solar time API

The clock on the wall and the sun over the birthplace are two different times, and in a wide time zone they part company by hours. This endpoint returns the second one, decomposed so you can see where every minute came from.

Endpoint
POST /v1/chinese/true-solar-time
Coste
10 créditos
Latencia
~55 ms
Nivel
Tier 1
// 01 / Qué calcula

True solar time API

True solar time is the hour angle of the apparent Sun at the birth longitude, carried round by half a day, taken from the Swiss Ephemeris apparent right ascension against Greenwich mean sidereal time. It decomposes into two terms that are reported separately. The meridian term is the birthplace's distance from its zone meridian, four minutes per degree, and it is the large one: China runs one offset from Kashgar to Harbin, so a Xinjiang birth sits nearly three hours from its own clock. The equation of time is the Sun's own annual wobble, up to about sixteen minutes either way, and it is the term almanac tables usually omit. The response also reports whether the correction crossed midnight, since that moves the day pillar and not only the hour.

// 02 / Solicitud en vivo

POST/v1/chinese/true-solar-time

curl -X POST https://api.astroway.info/v1/chinese/true-solar-time \
  -H "X-Api-Key: aw_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "date": "1990-05-15",
    "time": "14:30:00",
    "timezoneOffset": 8,
    "longitude": 87.6
  }'
Respuesta (fragmento)
{
  "ok": true,
  "data": {
    "clockTime": "14:30:00",
    "trueSolarTime": "12:24:06",
    "totalCorrectionMinutes": -125.89,
    "longitudeCorrectionMinutes": -129.6,
    "equationOfTimeMinutes": 3.71,
    "dayShift": 0,
    "date": "1990-05-15"
  }
}
// 03 / Parámetros

Parámetros

nametypeObligatorio
date string (YYYY-MM-DD) Local calendar date at birth.
time string (HH:MM:SS) Local clock time at birth.
timezoneOffset number (hours) The offset the clock was actually running on. A 1988 Beijing birth ran on +9 under summer time, and no arithmetic here recovers that from the date.
longitude number Birth longitude in decimal degrees, east positive.
// 04 / Cuándo usarlo

Cuándo usarlo

Use it whenever a chart depends on the double-hour and the birthplace is far from its zone meridian: BaZi hour pillars, Zi Wei hour palaces, any Chinese reading for a birth in western China, in a wide zone such as Spain or Argentina, or anywhere a colonial-era zone boundary sits well off the meridian. It also stands alone as a utility for sundial work and for anybody reconciling a printed almanac against a clock time. Inside our own BaZi surface the same correction is available as a trueSolarTime flag, so you rarely need to call this endpoint and then re-send the result.

// 05 / Notas

Notas

The correction reaches the day and the hour and deliberately does not reach the year and the month. Li Chun and the 節 are world instants, and a sundial reading has nothing to say about when the Sun crosses 315 degrees. Applying the correction to the year boundary is a real and common bug: it gives a birth seventeen minutes after Li Chun the previous year and four wrong pillars. The equation of time is pinned to the four published turning points of the annual curve and its four zeros.

Prueba la API de True solar time

Consigue una clave y haz tu primera llamada en menos de un minuto.

99.9% SLA · planes de pago · 30 días estado →