Skip to content
New issue

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

Normative: Remove "60" from TimeMinuteNotValidDay #2279

Closed
wants to merge 1 commit into from

Conversation

anba
Copy link
Contributor

@anba anba commented Jun 9, 2022

This is probably non-normative, because "60" is already rejected in
ParseISODateTime when IsValidTime gets called.

Fixes #2238

This is probably non-normative, because "60" is already rejected in
`ParseISODateTime` when `IsValidTime` gets called.

Fixes tc39#2238
@codecov
Copy link

codecov bot commented Jun 9, 2022

Codecov Report

Merging #2279 (01419a8) into main (1b3d018) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2279   +/-   ##
=======================================
  Coverage   91.06%   91.06%           
=======================================
  Files          19       19           
  Lines       10528    10528           
  Branches     1699     1699           
=======================================
  Hits         9587     9587           
  Misses        929      929           
  Partials       12       12           
Flag Coverage Δ
test262 83.30% <ø> (ø)
tests 81.79% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b3d018...01419a8. Read the comment docs.

Copy link
Collaborator

@gibson042 gibson042 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is normative:

  • Temporal.Calendar.from ( calendarLike ) calls ToTemporalCalendar(calendarLike).
  • ToTemporalCalendar(temporalCalendarLike) with non-object temporalCalendarLike stringifies it to identifier and ParseTemporalCalendarString(identifier) if it does not identify a built-in calendar.
  • ParseTemporalCalendarString ( isoString ) parses isoString as a |TemporalCalendarString| and returns the contained |CalendarName| as a string or "iso8601" if there is no |CalendarName|.
  • |TemporalCalendarString| can expand to |CalendarTime|, which can expand to |TimeSpecWithOptionalTimeZoneNotAmbiguous|, which can expand to |TimeHourMinuteBasicFormatNotAmbiguous| |TimeZoneBracketedAnnotation|?, in which |TimeHourMinuteBasicFormatNotAmbiguous| can expand to |TimeHour| |TimeMinuteNotValidDay|.

So per current spec, Temporal.Calendar.from("0160") should return the built-in ISO 8601 calendar. But that is the very #2238 bug being fixed by this change.

Copy link
Collaborator

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, dang. I have to agree with Richard that it is normative. I guess this one goes on the list for July, so I'll mark it as draft.

@ptomato ptomato marked this pull request as draft June 12, 2022 15:19
@ptomato ptomato changed the title Editorial: Remove "60" from TimeMinuteNotValidDay Normative: Remove "60" from TimeMinuteNotValidDay Jun 14, 2022
@ptomato ptomato added the normative Would be a normative change to the proposal label Jun 14, 2022
@ptomato
Copy link
Collaborator

ptomato commented Jun 30, 2022

Subsumed by #2284.

@ptomato ptomato closed this Jun 30, 2022
@anba anba deleted the TimeMinuteNotValidDay-2238 branch August 4, 2023 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
normative Would be a normative change to the proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TimeMinuteNotValidDay incorrectly includes "60"
3 participants