From 7f6bfbf6202b599f154b165ccd425c06fde8ca46 Mon Sep 17 00:00:00 2001 From: Matthew Benedict <46784000+UInt2048@users.noreply.github.com> Date: Mon, 6 Oct 2025 21:35:49 +0000 Subject: [PATCH] Julian year 4713 BC is -4712, because year 0 = 1 BC --- Sources/FoundationEssentials/Date.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FoundationEssentials/Date.swift b/Sources/FoundationEssentials/Date.swift index 4db2a7367..df240ed2f 100644 --- a/Sources/FoundationEssentials/Date.swift +++ b/Sources/FoundationEssentials/Date.swift @@ -389,7 +389,7 @@ extension Date : _CustomPlaygroundQuickLookable { #endif // FOUNDATION_FRAMEWORK extension Date { - // Julian day 0 (-4713-01-01 12:00:00 +0000) in CFAbsoluteTime to 506713-02-07 00:00:00 +0000, smaller than the max time ICU supported. + // Julian day 0 (-4712-01-01 12:00:00 +0000) in CFAbsoluteTime to 506713-02-07 00:00:00 +0000, smaller than the max time ICU supported. package static let validCalendarRange = Date(timeIntervalSinceReferenceDate: TimeInterval(-211845067200.0))...Date(timeIntervalSinceReferenceDate: TimeInterval(15927175497600.0)) // aka __CFCalendarValidateAndCapTimeRange