MIT-Licensed Ephemeris · Zero Proprietary Copyleft
True Solar Time & Astronomical BaZi Methodology
Traditional Four Pillars (Si Zhu) charting depends on two astronomical measurements: exact solar ecliptic longitude (15° intervals for the 24 Solar Terms) and local apparent solar time for the Hour Pillar. BaZiPulse computes both deterministically using astronomy-engine and tyme4ts, and exposes a read-only MCP endpoint at /api/mcp.
True Solar Time Equations
| Component | Formula | Notes |
|---|---|---|
| Standard Meridian | (TZ_Offset_Minutes / 60) × 15° | Accounts for historical DST in IANA timezone |
| Longitude Offset | (Birth_Lon − Standard_Meridian) × 4 min | Earth rotates 1° every 4 minutes |
| Equation of Time (EoT) | 12h + GAST − RA_Sun − UTC | Computed via astronomy-engine SunPosition & SiderealTime |
| True Solar Time | Local_Clock + Longitude_Offset + EoT | Flags Hour Pillar shift if 2-hour branch changes |
| Month Pillar Boundary | Sun_Ecliptic_Longitude = 315° + 30°·k | 12 Jieqi terms (Lichun 315° starts the solar year) |