In this Hasty Treat, Scott and Wes talk about Temporal Date Objects in JavaScript — a WICKED AWESOME API for working with times and dates.
Sentry - Sponsor If you want to know what’s happening with your errors, track them with Sentry. Sentry is open-source error tracking that helps developers monitor and fix crashes in real time. Cut your time on error resolution from five hours to five minutes. It works with any language and integrates with dozens of other services. Syntax listeners can get two months for free by visiting Sentry.io and using the coupon code “tastytreat”.
Show Notes 05:11 - Temporal Now
Temporal.now.___07:58 - Temporal Instants
Temporal.Instant represents a fixed point in time, without regard to calendar or location.09:59 - Calendar
11:43 - Durations
12:47 - Other interesting parts
14:51 - Polyfill (unstable)
Links * Fixing JavaScrip Date - Maggie Pint * https://github.com/tc39/proposal-temporal * https://github.com/tc39/proposal-temporal/blob/main/docs/calendar.md#methods * https://github.com/tc39/proposal-temporal/blob/main/docs/duration.md
Tweet us your tasty treats! * Scott’s Instagram * LevelUpTutorials Instagram * Wes’ Instagram * Wes’ Twitter * Wes’ Facebook * Scott’s Twitter * Make sure to include @SyntaxFM in your tweets