35 ms·
Please review and contribute your views on the TC39 Temporal proposal. There’s a polyfill to play with now... https://github.com/tc39/proposal-temporal https:/
by apaprocki 8y ago
Please review and contribute your views on the TC39 Temporal proposal. There’s a polyfill to play with now...
https://github.com/tc39/proposal-temporal https://github.com/tc39/proposal-temporal
- Klathmon 8y agoThis is fantastic, however it doesn't really completely replace the reasons for using something like date-fns. Stuff like a "time-range" (both a "computer" value, and a "humanized" one like "10 minutes ago"), and other nice to haves. There's no reason this can't be a good base going forward though! And for what it does cover, I really like the API.
- oldmanhorton 8y agoThere is an Intl.RelativeTimeFormat proposal as well: https://github.com/tc39/proposal-intl-relative-time/blob/master/README.md https://github.com/tc39/proposal-intl-relative-time/blob/mas...
- univerio 8y agoThis looks like a step in the right direction. I can't seem to find a polyfill though -- do you have a link to that?
- Klathmon 8y agoThe one open PR is a self described "first go" at a polyfill. https://github.com/tc39/proposal-temporal/pull/57 https://github.com/tc39/proposal-temporal/pull/57