Skip to content

Commit cd6ebe2

Browse files
authored
Julian year 4713 BC is -4712, because year 0 = 1 BC (#1536)
1 parent a1c34d0 commit cd6ebe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/Date.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ extension Date : _CustomPlaygroundQuickLookable {
446446
#endif // FOUNDATION_FRAMEWORK
447447

448448
extension Date {
449-
// 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.
449+
// 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.
450450
package static let validCalendarRange = Date(timeIntervalSinceReferenceDate: TimeInterval(-211845067200.0))...Date(timeIntervalSinceReferenceDate: TimeInterval(15927175497600.0))
451451

452452
// aka __CFCalendarValidateAndCapTimeRange

0 commit comments

Comments
 (0)