We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DifferenceZonedDateTime, step 11:
Return ! CreateNormalizedDurationRecord(dateDifference.[[Years]], dateDifference.[[Months]], dateDifference.[[Weeks]], result.[[Days]], result.[[Remainder]]).
The CreateNormalizedDurationRecord call is fallible. Test case:
CreateNormalizedDurationRecord
const oneDay = BigInt(Temporal.Duration.from("P1D").total("nanoseconds")); let cal = new class extends Temporal.Calendar { dateUntil(one, two, options) { return super.dateUntil(one, two, options).negated(); } }("iso8601"); let zdt1 = new Temporal.ZonedDateTime(0n, "UTC", cal); let zdt2 = new Temporal.ZonedDateTime(50n * oneDay, "UTC", cal); zdt1.until(zdt2, { largestUnit: "weeks", });
The text was updated successfully, but these errors were encountered:
Thanks for figuring this out. Have you looked at #2760 yet? This may be obsolete once it lands.
Sorry, something went wrong.
Have you looked at #2760 yet? This may be obsolete once it lands.
No, I haven't yet looked at that PR.
Fixed by #2760.
No branches or pull requests
DifferenceZonedDateTime, step 11:
The
CreateNormalizedDurationRecord
call is fallible. Test case:The text was updated successfully, but these errors were encountered: