Artwork

Content provided by Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

Hasty Treat - Temporal Date Objects in JavaScript

16:44
 
Share
 

Manage episode 275358057 series 1469447
Content provided by Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

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

  • You can get now
    • Temporal.now.___

07:58 - Temporal Instants

  • A Temporal.Instant represents a fixed point in time, without regard to calendar or location.
    • Most common way to show it is nanoseconds since unix epoch.
    • Can be formatted a few different ways.

09:59 - Calendar

  • Support for different types of calendars

11:43 - Durations

  • Temporal.Duration
    • There are .from and .add and subtract() methods

12:47 - Other interesting parts

  • Timezones
    • Temporal.ZonedDateTime
  • Temporal.YearMonth - represents a ym = new Temporal.YearMonth(2019, 6) // => 2019-06

14:51 - Polyfill (unstable)

Links Tweet us your tasty treats!
  continue reading

968 episodes

Artwork
iconShare
 
Manage episode 275358057 series 1469447
Content provided by Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

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

  • You can get now
    • Temporal.now.___

07:58 - Temporal Instants

  • A Temporal.Instant represents a fixed point in time, without regard to calendar or location.
    • Most common way to show it is nanoseconds since unix epoch.
    • Can be formatted a few different ways.

09:59 - Calendar

  • Support for different types of calendars

11:43 - Durations

  • Temporal.Duration
    • There are .from and .add and subtract() methods

12:47 - Other interesting parts

  • Timezones
    • Temporal.ZonedDateTime
  • Temporal.YearMonth - represents a ym = new Temporal.YearMonth(2019, 6) // => 2019-06

14:51 - Polyfill (unstable)

Links Tweet us your tasty treats!
  continue reading

968 episodes

Kaikki jaksot

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide

Copyright 2025 | Privacy Policy | Terms of Service | | Copyright
Listen to this show while you explore
Play