关于「子时的三种约定与真太阳时」,《四柱排盘的计算》给出的定量结论是什么?
结论:第二章比较子时的三种约定,它们只在 23 点到 24 点之间不同,影响 0.0417 的出生;钟表时间与真太阳时之差使时支在上海对 0.069 的出生不同,在吉隆坡对 0.610 的出生不同。
数据口径:书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 与结论吻合的打印值: 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.查看完整验算程序
# 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.")唯一数据源与引用
范雅福(Fan, Y.). (2026). 《四柱排盘的历法计算与规则引擎》第 2 章「子时的三种约定与真太阳时」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090180
DOI: 10.5281/zenodo.24090180 · 阅读本章所在专著 · 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}
}