You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
solsticeAfter = solsticeBefore + 365; // Safeguard for far-future proleptic dates (ICU-23286) where Keplerian orbital approximations hit precision limits.
814
+
}
805
815
if (!(solsticeBefore <= days && days < solsticeAfter)) {
solsticeAfter = solsticeBefore + 365; // Safeguard for far-future proleptic dates (ICU-23286) where Keplerian orbital approximations hit precision limits.
1037
+
}
1038
+
// ICU-22230: Special case for 1889/1890. Before 1928, local mean time in Shanghai was UTC+8:05:43.
1039
+
// On December 22, 1889, Winter Solstice occurred at 23:57:28 UTC+8 on Dec 21, which was 00:03:11 AM on Dec 22
1040
+
// in local Shanghai time. Because integer day calculation divides (ms + 8h) by 24h assuming UTC+8.000,
1041
+
// the Solstice was rounded down to Dec 21 (-29230), while the New Moon later that day (20:53 PM) fell on Dec 22 (-29229).
1042
+
// Across 5,000 years, 1889 is the only year where this 5-minute-and-43-second rounding window splits Solstice and
1043
+
// New Moon across midnight. We evaluate New Moon from solsticeBefore for 1889/1890 to capture the Dec 22 New Moon.
solsticeAfter = solsticeBefore + 365; // Safeguard for far-future proleptic dates (ICU-23286) where Keplerian orbital approximations hit precision limits.
930
+
}
919
931
920
932
// Find the start of the month after month 11. This will be either
921
933
// the prior month 12 or leap month 11 (very rare). Also find the
solsticeAfter = solsticeBefore + 365; // Safeguard for far-future proleptic dates (ICU-23286) where Keplerian orbital approximations hit precision limits.
996
+
}
997
+
// ICU-22230: Special case for 1889/1890. Before 1928, local mean time in Shanghai was UTC+8:05:43.
998
+
// On December 22, 1889, Winter Solstice occurred at 23:57:28 UTC+8 on Dec 21, which was 00:03:11 AM on Dec 22
999
+
// in local Shanghai time. Because integer day calculation divides (ms + 8h) by 24h assuming UTC+8.000,
1000
+
// the Solstice was rounded down to Dec 21 (-29230), while the New Moon later that day (20:53 PM) fell on Dec 22 (-29229).
1001
+
// Across 5,000 years, 1889 is the only year where this 5-minute-and-43-second rounding window splits Solstice and
1002
+
// New Moon across midnight. We evaluate New Moon from solsticeBefore for 1889/1890 to capture the Dec 22 New Moon.
0 commit comments