tc39 / proposal-intl-datetime-style

dateStyle and timeStyle options for DateTimeFormat
https://tc39.github.io/proposal-intl-datetime-style/
28 stars 9 forks source link

Interoperability with Temporal #39

Open sffc opened 4 years ago

sffc commented 4 years ago

Temporal uses a sort of "filter" for which fields from the options bag are used to format the values.

https://github.com/tc39/proposal-temporal/issues/169#issuecomment-540696570

How does dateStyle/timeStyle fit in with that model?

IIRC, dateStyle/timeStyle basically maps a locale to a preferred skeleton. We could then apply the same filtering to that skeleton before running the pattern matching. Thoughts?

@littledan @zbraniecki @pipobscure

littledan commented 4 years ago

@sffc That sounds good to me. Are there any difficult issues from there to work out? Should we put this in the Temporal spec text now, or wait for this to hit Stage 4? cc @ms2ger @ryzokuken