Skip to content

Consistency for [[HourCycle]] from LocaleData #339

@leobalter

Description

@leobalter

From https://tc39.github.io/ecma402/#sec-initializedatetimeformat

Is that lowercase dataLocalData.[[hourCycle]] intentional? It happens twice in the specs.

It sounds like a typo but I might be missing something from the LocaleData as in Let dataLocaleData be localeData.[[<dataLocale>]].

But also from DateTimeFormat Internal Slots we read [[LocaleData]][locale] must have a hourCycle field with a String value equal to "h11", "h12", "h23", or "h24" for all locale values.

First fix I can imagine is [[hourCycle]] becoming [[HourCycle]] with the Internal Slots section describing the hourCycle as a matching internal field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: datetimeComponent: dates, times, timezoneseditorialInvolves an editorial fixquestions: help wantedStatus: help wanted; needs proposal champion

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions