Hacker News new | past | comments | ask | show | jobs | submit login

Sorry for the dumb questions, I haven't worked with js much, but what does this add to the standard library?

Going just by the one example there, I can see that timezone by location is probably extra, that's perfectly fine. The endOf modifier seems more like a helper to fix broken date/time model in js? But other parts should probably be in the standard library? I was under the impression js is improving fast nowadays, will stuff like this get into the language?




The standard library is really difficult to work with and does very little for you. There are some improvements to Dates coming through the standards pipeline but it will be a while.


From what I've seen JavaScript's standard library doesn't change much, most the changes are language changes?

As for what it adds, looks like duration and interval classes.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: