Calculation verification
BaZi Calculation Edge Cases
Seven reproducible synthetic birth inputs showing exactly how MingShu handles Lichun solar-term transitions, 23:00 day boundaries, historical daylight saving time, ambiguous or non-existent clocks, unknown birth time, and approximate ranges — including when the engine refuses to guess.
Verification scope & pinned versions (verified 2026-11-22)
- Rule version:
mingshu-birth-core-bridge-v1.2-s79-tubular-2026e-2026-11-01 - Calendar library: lunar-typescript 1.8.6
- Time zone history: @tubular/time 3.10.11 (IANA tzdb 2026e)
- Test nature: Synthetic public boundary inputs replayed directly against the site's deterministic calculation core — not customer records and not a claim of predictive accuracy.
Want to test your own birth date and time zone? Open the Free BaZi Calculator →
Summary of all seven boundary cases
When two BaZi calculators disagree, the difference almost always traces back to a concrete calendar or clock-time rule. The table below summarizes seven boundary cases verified directly on MingShu's engine.
| Case | Boundary tested | MingShu behavior |
|---|---|---|
| Case 1 | Lichun (Beginning of Spring) 5-minute transition | Year 癸卯 · Month 乙丑 · Day 戊戌 · Hour 庚申 (1 certain chart) / Year 甲辰 · Month 丙寅 · Day 戊戌 · Hour 庚申 (1 certain chart) |
| Case 2 | 23:00 day boundary (Rat hour transition) | Year 己巳 · Month 丙子 · Day 丙寅 · Hour 己亥 / Year 己巳 · Month 丙子 · Day 丁卯 · Hour 庚子 |
| Case 3 | Historical daylight saving time (1990 Shanghai summer clock) | Year 庚午 · Month 癸未 · Day 辛巳 · Hour 己亥 (restored to standard 22:30, +08:00) |
| Case 4 | Ambiguous repeated clock time (fall-back DST fold) | Certain pillars: 庚午 / 丙戌 / 丙寅 · Hour: Uncertain (2 candidates: 戊子 vs 己丑) |
| Case 5 | Non-existent clock time (spring-forward DST gap) | Rejected with code CLOCK_GAP · Preserves input and offers nearest valid minutes (01:59 -05:00 or 03:00 -04:00) or unknown time |
| Case 6 | Unknown birth time (three-pillar partial chart) | Certain pillars: 庚午 / 辛巳 / 庚辰 · Hour: Unknown (12 candidate hours tracked internally) |
| Case 7 | Approximate time window crossing 23:00 | Certain pillars: 己巳 / 丙子 · Day & Hour: Uncertain (2 candidates: 丙寅/己亥 vs 丁卯/庚子) |
Case 1: Lichun (Beginning of Spring) 5-minute transition
Many calendars switch the Chinese zodiac year on January 1 or Lunar New Year. In BaZi, both the Year Pillar and the first Month Pillar switch at the Lichun (立春) solar term instead.
| Sample | Synthetic input | Verified engine output |
|---|---|---|
| Before Lichun | 2024-02-04 16:25 · Asia/Shanghai (exact) | Year 癸卯 · Month 乙丑 · Day 戊戌 · Hour 庚申 (1 certain chart) |
| After Lichun | 2024-02-04 16:30 · Asia/Shanghai (exact) | Year 甲辰 · Month 丙寅 · Day 戊戌 · Hour 庚申 (1 certain chart) |
How MingShu handles it: Within 5 minutes on the same afternoon, both the Year Pillar (癸卯 → 甲辰) and Month Pillar (乙丑 → 丙寅) flip together while the Day and Hour Pillars stay unchanged. Mid-qi (中氣) solar terms do not change year or month pillars.
Boundary & what cannot be inferred: Second-level solar-term cuts come from the pinned calendar library as deterministic compute intervals, not as an independent astronomical second-truth guarantee.
Case 2: 23:00 day boundary (Rat hour transition)
The Rat double-hour (子時, 23:00–00:59) straddles midnight. Calculators that change the Day Pillar at 23:00 versus 00:00 produce different Day Masters for anyone born between 23:00 and 23:59.
| Sample | Synthetic input | Verified engine output |
|---|---|---|
| Before 23:00 | 1990-01-01 22:55 · Asia/Shanghai (exact) | Year 己巳 · Month 丙子 · Day 丙寅 · Hour 己亥 |
| After 23:00 | 1990-01-01 23:05 · Asia/Shanghai (exact) | Year 己巳 · Month 丙子 · Day 丁卯 · Hour 庚子 |
How MingShu handles it: MingShu fixes the chart day boundary at 23:00 local standard time. Crossing 23:00 advances both the Day Pillar (丙寅 → 丁卯) and the Hour Pillar (己亥 → 庚子).
Boundary & what cannot be inferred: Schools that separate early/late Rat hour at 00:00 will intentionally output a different Day Pillar for 23:00–23:59; that is a documented school convention, not a bug on either side.
Case 3: Historical daylight saving time (1990 Shanghai summer clock)
Mainland China observed daylight saving time in the summers of 1986–1991. Tools that ignore historical DST treat a civil 23:30 record as after the 23:00 boundary and assign the wrong Day and Hour Pillars.
| Sample | Synthetic input | Verified engine output |
|---|---|---|
| Civil 23:30 under 1990 DST | 1990-07-15 23:30 · Asia/Shanghai (exact; civil UTC+09:00) | Year 庚午 · Month 癸未 · Day 辛巳 · Hour 己亥 (restored to standard 22:30, +08:00) |
How MingShu handles it: Users enter the recorded civil clock face. MingShu restores that instant through pinned IANA zone history (tzdb 2026e) and evaluates the Day and Hour Pillars on local standard time (+08:00), placing civil 23:30 at standard 22:30 — still 辛巳 / 己亥 rather than the next day.
Boundary & what cannot be inferred: Historical timezone precision is bounded by the IANA tzdb release in use; MingShu does not invent sub-tzdb local clock histories.
Case 4: Ambiguous repeated clock time (fall-back DST fold)
When clocks fall back one hour in autumn, local times like 01:30 happen twice — once under DST and once under standard time. Silently picking the first or second instant can silently assign the wrong Hour Pillar.
| Sample | Synthetic input | Verified engine output |
|---|---|---|
| Unresolved fold | 1990-10-28 01:30 · America/New_York (exact; no fold choice) | Certain pillars: 庚午 / 丙戌 / 丙寅 · Hour: Uncertain (2 candidates: 戊子 vs 己丑) |
How MingShu handles it: Instead of guessing which 01:30 occurred, MingShu leaves the Hour Pillar explicitly uncertain and surfaces both candidate charts — 戊子 (EDT -04:00 → standard 00:30) and 己丑 (EST -05:00 → standard 01:30) — until the user confirms the offset.
Boundary & what cannot be inferred: Without confirmation of whether the birth occurred before or after the clock fell back, no single Hour Pillar can be stated as certain.
Case 5: Non-existent clock time (spring-forward DST gap)
When clocks spring forward from 02:00 to 03:00, 02:30 never existed on local clocks. Silent shifting hides transcription mistakes on birth records.
| Sample | Synthetic input | Verified engine output |
|---|---|---|
| Spring-forward gap | 1990-04-01 02:30 · America/New_York (exact) | Rejected with code CLOCK_GAP · Preserves input and offers nearest valid minutes (01:59 -05:00 or 03:00 -04:00) or unknown time |
How MingShu handles it: MingShu refuses to silently shift a non-existent clock time into a chart. It returns a structured correction prompt (CLOCK_GAP) so the user can check the birth record or switch to unknown time.
Boundary & what cannot be inferred: A non-existent local clock entry cannot be automatically resolved into a valid birth chart without user verification.
Case 6: Unknown birth time (three-pillar partial chart)
Many overseas users do not know their exact birth hour. Some calculators crash on blank time fields, while others quietly substitute 12:00 noon and present a fabricated Hour Pillar as fact.
| Sample | Synthetic input | Verified engine output |
|---|---|---|
| Unknown hour | 1990-05-15 · America/New_York (timePrecision: unknown) | Certain pillars: 庚午 / 辛巳 / 庚辰 · Hour: Unknown (12 candidate hours tracked internally) |
How MingShu handles it: MingShu keeps unknown birth time as a first-class state: it displays the three certain pillars, leaves the Hour Pillar explicitly unknown, and tracks all 12 candidate hours rather than inventing noon.
Boundary & what cannot be inferred: An unknown-hour chart cannot support a complete eight-position Five Elements count or any reading that depends on the Hour Pillar.
Case 7: Approximate time window crossing 23:00
When a family remembers only an approximate window such as 'between 10:30 PM and 11:30 PM', that range straddles the 23:00 day change and makes the Day Master itself uncertain.
| Sample | Synthetic input | Verified engine output |
|---|---|---|
| 22:30–23:30 range | 1990-01-01 22:30–23:30 · Asia/Shanghai (approximate) | Certain pillars: 己巳 / 丙子 · Day & Hour: Uncertain (2 candidates: 丙寅/己亥 vs 丁卯/庚子) |
How MingShu handles it: Because the window crosses 23:00, MingShu marks both the Day Pillar and Hour Pillar as uncertain and keeps the 2 distinct candidate charts separate instead of picking one Day Master.
Boundary & what cannot be inferred: When the Day Pillar has multiple candidates, no single Day Master profile should be presented as settled fact.
Two additional boundaries kept explicit on this site
- True Solar Time (真太陽時): MingShu's primary chart uses pinned IANA historical time zones and local standard time (non-DST) with a 23:00 day boundary. It does not silently convert civil input into longitude-adjusted True Solar Time. If another calculator enables True Solar Time by default, births near a double-hour boundary can produce a different Hour Pillar.
- Visible Five Elements counts are not strength or useful-god prescriptions: Free chart distributions count only certain visible stem and branch positions. A zero count does not automatically mean an element is “missing” or must be supplemented, and raw counts do not establish Day Master strength or favorable elements (喜忌). See the Five Elements overview and the BaZi system overview.
Frequently asked questions
Why do different BaZi calculators give me different Four Pillars?
The most common reasons are: (1) switching the Day Pillar at 23:00 versus 00:00, (2) whether historical daylight saving time (DST) is restored to local standard time, (3) whether longitude-based True Solar Time is applied automatically, and (4) how calculators handle Lichun or unknown birth times. Checking these four settings usually explains the difference.
Can I calculate a BaZi chart if I do not know my birth time?
Yes, as a partial chart. On MingShu, selecting Unknown time calculates the certain Year, Month, and Day Pillars (when no solar-term boundary is crossed during that day) and leaves the Hour Pillar explicitly blank instead of quietly filling in 12:00 noon.
If I was born during daylight saving time, should I subtract an hour before entering my birth time?
No. Enter the civil clock time recorded on your birth certificate along with the birthplace IANA time zone. MingShu restores historical DST from IANA tzdb (2026e) and converts to local standard time automatically, while flagging ambiguous fall-back times and non-existent spring-forward times.
Does MingShu automatically convert civil birth time to True Solar Time?
No. MingShu's primary chart uses pinned IANA historical time zones and local standard time (non-DST) with a 23:00 day boundary. True Solar Time (longitude and equation-of-time adjustment) is treated as a documented contrast rather than a silent conversion.
Check your own chart with transparent time rules
Enter a local civil birth date, optional exact or approximate time (or Unknown), and birthplace time zone — free and without registration.