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

What if one does not want to use a port of Joda? Even looking at the documentation makes me run away. Where are all the examples?

date-fns seems good, moment works well too, despite its flaws, this new one is worth looking at.

Dismissing all other libraries isn't very helpful.

And yes, I realise all other libraries are wrappers around Date. It works well enough for 99% of cases.




Agree with your points, but I really thought joda-time’s documentation was decent! Cheatsheet had plenty of examples: https://js-joda.github.io/js-joda/cheat-sheet.html


Thanks. I didn't find that last time. Examples should really be in the actual documentation.


https://js-joda.github.io/js-joda/cheat-sheet.html

EDIT: My precious internet points! ;) - wait, is this not a page of examples, as linked to from the GitHub page?


I think you might be downvoted because you plastered a link with no explanation. It doesn't actually address my concern, which was that when I was reading the documentation I did not see any examples.


Date-handling should work in 100% of cases.

You can built syntactic sugar around js-joda too.

I develop Java/kotlin as well, so I'm used to the API. It feels verbose, but it makes a lot of sense. Date-handling is complex, a library shouldn't hide that.


That's not what I meant by "works". I meant works for the use case. Moment has worked 100% for me whenever I used it. It's API is simple and does what it says.




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

Search: