Developer Builds Deterministic True Solar Time Engine for BaZi and Zi Wei Astrology
A developer describes building a deterministic calculation engine in TypeScript for BaZi and Zi Wei Dou Shu, two Chinese astrology systems. The article argues that many online calculators err because they ignore that the BaZi year changes at the astronomical Start of Spring rather than January 1, and that the hour pillar depends on True Solar Time rather than civil clock time. The engine corrects for longitude offset and the Equation of Time, and it derives historical timezone offsets from IANA timezone data. The author says all chart math runs deterministically before any narrative interpretation, avoiding the errors large language models often make with calendar calculations. The core calculators are offered free on the CyberTaoist website and deployed via Cloudflare Workers.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in