TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Temporal API Is Awesome

15 pointsby tarokun-ioover 1 year ago

2 comments

tarokun-ioover 1 year ago
Hey everyone! Earlier this week I published this article on the Temporal API (it really is awesome).<p>It&#x27;s only the second time I dare share a link to an article I wrote. I find it intimidating, honestly.<p>I put a ton of effort into writing the article (and creating the no-dependencies runnable-script widget). Would love your feedback &#x2F; constructive criticism :)
koromakover 1 year ago
I&#x27;m currently procrastinating my task of migrating an entire frontend from MomentJS to date-fns. I hate dates, and I hate this work. I would be overjoyed if we get a standard.<p>Funnily enough, date-fns-tz is MUCH worse than moment-timezone, so much so that I&#x27;m regretting making the decision to migrate. It works by fundamentally altering the Unix timestamp of the underlying date, so that when you format() it, the times <i>appear</i> correct. But try to actually pull a unix seconds out of it and you&#x27;re screwed.<p>I should have stuck with the larger bundle size. Aside from Moment being mutable and non-tree-shakeable, the api is better in every way if you care about fixed, non-local timezones.
评论 #37679655 未加载
评论 #37679593 未加载
评论 #37679479 未加载
评论 #37680004 未加载