4 ms·
Have you ever used date-fns or Luxon? although Moment is still popular, I thought that was it succeeded by other libraries. If my memory is completely wrong I t
by have_faith 2y ago
Have you ever used date-fns or Luxon? although Moment is still popular, I thought that was it succeeded by other libraries. If my memory is completely wrong I thought that Luxon might have been made by the creators of Moment?
- MrJohz 2y agoDate-fns uses the native Date object which makes the same mistake, but then has a bunch of additional mistakes like not accounting for timezones and being painful to use. Date-fns can resolve some of these issues, but it's generally too simple to do a good job. It's great for manipulating timestamps in the user's local time zone, but beyond that it starts becoming difficult to get right.
- mekster 2y agoDayjs works good either.
- mceachen 2y agoLuxon is great! You’re correct about its origin. I use Luxon both for exiftool-vendored and PhotoStructure. The new temporal api discussed in TFA includes more robust calendar support and more flexible zoned DateTime than Luxon afaict.