How does this compare in file size to Moment? That's the only real issue I have with it.
27.3 KB compressed with `gzip -9`, 26.4KB with `zopfli -i1000` and 24.0KB with `brotli -q 11`.
(kilo, not kibi)
11–20 of 80 posts
How does this compare in file size to Moment? That's the only real issue I have with it.
27.3 KB compressed with `gzip -9`, 26.4KB with `zopfli -i1000` and 24.0KB with `brotli -q 11`.
(kilo, not kibi)
PLEASE use joda-js on Javascript: https://js-joda.github.io/js-joda/ It's a port of the java8 date/time API, which is the most correct date-handling library there is.
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.
This seems like a bold decision and terrifying source of errors for those of us with decades of experience thinking January is 0.
Months in Luxon are 1-indexed instead of 0-indexed like in Moment and the native Date type. This seems like a bold decision and terrifying source of errors for those of us with decades of experience thinking January is 0.
Earlier quoted context omitted.
Thanks. This link should be on the github page to be honest. For people like me who do not (always) click through if they don’t see an immediate need. Only now notice the url contains moment and this is part of moment.
Well, perhaps the people who don't care to investigate just aren't a target of this library at the moment.
How does this compare in file size to Moment? That's the only real issue I have with it.
After minification with Uglify: 27.3 KB compressed with `gzip -9`, 26.4KB with `zopfli -i1000` and 24.0KB with `brotli -q 11`. (kilo, not kibi)
How does this compare in file size to Moment? That's the only real issue I have with it.
Months in Luxon are 1-indexed instead of 0-indexed like in Moment and the native Date type. This seems like a bold decision and terrifying source of errors for those of us with decades of experience thinking January is 0.
PLEASE use joda-js on Javascript: https://js-joda.github.io/js-joda/ It's a port of the java8 date/time API, which is the most correct date-handling library there is.
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.
EDIT: My precious internet points! ;) - wait, is this not a page of examples, as linked to from the GitHub page?