logoalt Hacker News

whizzteryesterday at 4:08 PM3 repliesview on HN

How is it compared to moment and especially luxon?


Replies

MrJohzyesterday at 8:51 PM

It is a lot more complex than moment, but only because there's a lot of inherent complexity to dates and times that moment just doesn't deal with. So you need to be explicit about whether you're dealing with dates, times, or datetime objects, whether or not the object you're working with has a timezone, etc. Where moment is generally designed to have a convenient API, Temporal is designed to have a correct API.

kristoyesterday at 4:53 PM

It’s a web standard api and very small weight. Highly recommend.

socalgal2yesterday at 7:18 PM

Didn't moment basically say in so many words, use Temporal?

show 1 reply