d3/d3-time-format

Temporal & Intl for date & time

onx2 opened this issue · 0 comments

onx2 commented

I didn't see a Wiki for questions and this really isn't an issue so hopefully this is the right spot to ask:

Would d3 consider implementing the date & time manipulation in Temporal once it has reached baseline on browsers? It reached Stage 3 in April and having seen previous proposals reach Stage 4 in 6-12 months, it is worth considering IMO. It is being developed in browsers as experimental right now and judging from the polyfill, it is as robust and ergonomic, if not more so, than 3rd party libraries.

As for formatting, Intl has things like RelativeTimeFormat which could reduce bundle size. Still offering the d3 versions would be nice for those that are actively using them, but switching the implementation under the hood to use browser standards (if not already doing so) could reduce bundle size.

I would be happy to contribute to this if there is interest.