-
Notifications
You must be signed in to change notification settings - Fork 182
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
Implement month and era codes #486
Comments
I will do this along with #257. |
Blocked on #519 |
Blocked on #493 |
Split it out into a separate issue since month codes will likely best be paired with a calendar that needs them |
I am unclear what this is exactly. @Manishearth @sffc would you mind clarifying and pointing to UTS 35 for this? It's marked with the C-datetime label, and we're triaging the DateTimeFormat component. |
@gregtatum So that we can handle leap months/etc, we need to have a way of talking about months that's not just numbers. There's a design for a month coding scheme here. We may ultimately choose to still use indices in the data, but use codes in the Calendar API. It's largely a Calendar-side change, but DTF will need to be updated to be able to fetch month formatting info using codes. |
This isn't a UTS 35 thing, UTS 35 has a month naming scheme that's somewhat inadequate: fine for data, but not for user-visible APIs. |
I think the general plan will be to move over to using month codes as data indices. |
@macchiati @pedberg-icu For calendars that insert months into the middle of the year, if a numeric-only month format is requested, is it acceptable to use the ordinal month number? |
Axes of questions:
Conclusion: Yes on 2, option 1 on 3, and generic constructor on 4. |
I've filed #2066 for leap month things and will be referencing it in code wehre leap months need to be handled, because I'm wary of writing code that can't be tested. |
The syntax for month and era codes is being discussed in #355. I implemented a placeholder in #445. This ticket is to follow up and properly wire month codes throughout the data model and document them appropriately.
The text was updated successfully, but these errors were encountered: