We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 496eb4d commit d7ac383Copy full SHA for d7ac383
Sources/FoundationEssentials/TimeCalculations.swift
@@ -148,8 +148,8 @@ extension Int64 {
148
var years = remyears + (4 &* qCycles) + (100 &* cCycles) + (400 &* qcCycles)
149
150
var months = 0
151
- while Int64.daysInMonth(months) <= remdays {
152
- remdays -= Int64.daysInMonth(months)
+ while daysInMonth(months) <= remdays {
+ remdays -= daysInMonth(months)
153
154
// Unchecked because daysInMonth will crash if given a value greater than 12, so this
155
// cannot exceed 12.
0 commit comments