What does Four-Pillar Computation conclude, in numbers, about “Three Conventions for the Zi Hour, and True Solar Time”?
Answer: Chapter 2 compares three conventions for the zi hour, which differ only between 23:00 and 24:00 and affect 0.0417 of births; the gap between clock time and true solar time changes the hour branch for 0.069 of births in Shanghai and 0.610 in Kuala Lumpur.
Scope of the numbers: Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. printed values that match the answer: 0.0417, 00, 23, 24
8 Nov 2026 22:30 A: bing-xu day, ji-hai hour
B: bing-xu day, ji-hai hour
C: bing-xu day, ji-hai hour
8 Nov 2026 23:30 A: ding-hai day, geng-zi hour
B: bing-xu day, geng-zi hour
C: bing-xu day, wu-zi hour
8 Nov 2026 00:30 A: bing-xu day, wu-zi hour
B: bing-xu day, wu-zi hour
C: bing-xu day, wu-zi hour
share of the day on which two rules differ:
A vs B: day pillar 0.0417, hour pillar 0.0000
A vs C: day pillar 0.0417, hour pillar 0.0417
B vs C: day pillar 0.0000, hour pillar 0.0417
Reading: all three rules agree for 23 hours of the day; in the
hour before midnight each pair differs in the day pillar, the
hour stem or both: one birth in 24 by clock time.Show the full program
# Chapter 2. Three conventions for the hour from 23:00 to 24:00.
# The zi double-hour runs from 23:00 to 01:00 and straddles midnight.
# A the day changes at 23:00: 23-24 takes the next day's pillar, and
# the zi hour takes its stem from the next day (five rats).
# B the day changes at 24:00 ("late zi"): 23-24 keeps today's day
# pillar, but the zi hour takes its stem from the next day.
# C the day changes at 24:00 and the 23-24 zi hour takes its stem from
# today's day stem.
# Times are local clock times; true solar time is the next program.
STEMS = ("jia", "yi", "bing", "ding", "wu", "ji", "geng", "xin", "ren",
"gui")
BRANCHES = ("zi", "chou", "yin", "mao", "chen", "si", "wu", "wei", "shen",
"you", "xu", "hai")
def jdn(y, m, d):
a = (14 - m) // 12
yy, mm = y + 4800 - a, m + 12 * a - 3
return (d + (153 * mm + 2) // 5 + 365 * yy + yy // 4 - yy // 100
+ yy // 400 - 32045)
def pillars(day_idx, minute, rule):
"""day_idx: sexagenary index of the civil date; minute: 0..1439."""
hb = ((minute + 60) // 120) % 12
late = minute >= 23 * 60
d = day_idx + (1 if late and rule == "A" else 0)
stem_day = day_idx + (1 if late and rule in "AB" else 0)
hs = (2 * (stem_day % 10 % 5) + hb) % 10
return d % 60, hs, hb
def label(p):
d, hs, hb = p
return "{}-{} day, {}-{} hour".format(STEMS[d % 10], BRANCHES[d % 12],
STEMS[hs], BRANCHES[hb])
if __name__ == "__main__":
di = (jdn(2026, 11, 8) + 49) % 60
for t in (22 * 60 + 30, 23 * 60 + 30, 30):
for r in "ABC":
head = (" 8 Nov 2026 {:02d}:{:02d}".format(t // 60, t % 60)
if r == "A" else " " * 19)
print("{} {}: {}".format(head, r, label(pillars(di, t, r))))
print(" share of the day on which two rules differ:")
for p, q in (("A", "B"), ("A", "C"), ("B", "C")):
day = hour = 0
for t in range(1440):
a, b = pillars(di, t, p), pillars(di, t, q)
day += a[0] != b[0]
hour += a[1:] != b[1:]
print(" {} vs {}: day pillar {:.4f}, hour pillar {:.4f}".format(
p, q, day / 1440, hour / 1440))
print("\nReading: all three rules agree for 23 hours of the day; in the")
print("hour before midnight each pair differs in the day pillar, the")
print("hour stem or both: one birth in 24 by clock time.")Single source and citation
Fan, Y. (2026). Four-Pillar Calendrical Computation and Formal Rule Engines (Version 1.0.0), Chapter 2: Three Conventions for the Zi Hour, and True Solar Time. 5D Library. https://doi.org/10.5281/zenodo.24090180
DOI: 10.5281/zenodo.24090180 · Read the monograph · 5DL-B-066 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026066,
author = {Fan, Yafu},
title = {Four-Pillar Calendrical Computation and Formal Rule Engines},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.24090180},
url = {https://doi.org/10.5281/zenodo.24090180}
}Other chapter answers in this book
- Chapter 1 · The Julian Day and the Congruences of the Four Pillars
- Chapter 3 · Timing Errors and the Edges of the Double-Hours
- Chapter 4 · The Ten Gods Are Z5 × Z2, the Hidden Stems Weight Vectors
- Chapter 5 · Strength Is Scoring on a Weighted Graph
- Chapter 6 · Two Chart Engines and a Set of Test Vectors
- Chapter 7 · The Yuanhai ziping, the Sanming tonghui and the Ditian sui
- Chapter 8 · A Four-Step Check, an Agreement Study and a Pre-Registered Matching Test