Learn Temporal API In 17 Minutes

Learn Temporal API In 17 Minutes

Web Dev Simplified

2 года назад

115,006 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@lesalmin
@lesalmin - 08.06.2023 10:49

According to "Can I use" this is still not implemented by any of the major browsers in June 2023. Any educated guesses what's slowing then down?

Ответить
@brennysky3462
@brennysky3462 - 23.12.2022 09:31

plz tell how to make one line of code to multi line when you chain a lot of stuff say .duration.from.blablabla.

Ответить
@samislam2746
@samislam2746 - 24.11.2022 15:06

If you want to know which stage is this, check this out, as of 24.Nov.2022, this is still at stage 3.

Ответить
@stoogel
@stoogel - 04.11.2022 09:12

Okay I stopped using Dates, problem is Temporal is not implemented in any browser

Ответить
@lostcarpark
@lostcarpark - 23.05.2022 17:42

The Temporal API says "Don't use in production". Would you use in real world projects (with Polyfill) or wait for browsers to support?

Ответить
@yuri0001
@yuri0001 - 20.05.2022 16:57

Yay now js can do something php did 81 years ago

Ответить
@bigk9000
@bigk9000 - 16.05.2022 18:21

When is this API set to be "production ready"?

Ответить
@fahadshah9820
@fahadshah9820 - 10.05.2022 16:54

is it safe to use this in production apps in node js?

Ответить
@TheTenThousandThings
@TheTenThousandThings - 23.04.2022 02:36

family

Ответить
@note5819
@note5819 - 20.04.2022 13:14

This has been more magical than Excel's date/time/duration functions. I'm in awe. Thank you!

Ответить
@administrasihrgapt.kepuhke3922
@administrasihrgapt.kepuhke3922 - 18.04.2022 17:19

Could You give us tutorial to create work shift schedule time table with date time overlap/conflict detection please?

So complicated when it comes to mobile view anyway -_-

Ответить
@luistapia1447
@luistapia1447 - 16.04.2022 10:16

I swear i cried when i saw the easy is to add days on a date. OMG

Ответить
@ieronim272
@ieronim272 - 11.04.2022 10:28

easily the best dating advice I've seen

Ответить
@wfl-junior
@wfl-junior - 04.04.2022 03:43

Finally

Ответить
@rob7010
@rob7010 - 02.04.2022 17:31

True. Datetimes are absolutely awful to work with, can't wait to see the new API in action natively.

Ответить
@sam3353
@sam3353 - 02.04.2022 00:55

I just recently had to fight with localization in JS. It will be nice to see this in JS. PHP has been a dream compared to what JS has put me through.

Ответить
@MrJbR-rc2rf
@MrJbR-rc2rf - 01.04.2022 12:01

Carbon is another useful tool to work with date time.

Ответить
@lostcarpark
@lostcarpark - 01.04.2022 11:57

I was recently working on a project where I needed to convert between an event timezone and the users timezone, and it was a complete pain, and relied on converting to a strong and back to a date, which works differently in Firefox and Chrome, not to mention in different locales. This will make that so much easier.

Ответить
@endlacer
@endlacer - 01.04.2022 11:14

why all this when you could use dayjs? dayjs is 600kb this polyfill is 4MB

Ответить
@MarshallLloyd
@MarshallLloyd - 31.03.2022 00:08

pronounced temperal not temp-oral. Tempus, temporis is Latin and the o is short.

Ответить
@ttbooster
@ttbooster - 29.03.2022 16:27

Estupendo! I'm currently replacing all my Date objects and some date-fns stuff based on js-temporal thanks to this video. I'd like to see if I can completely remove date-fns but I would have to create some helper functions for instance "areIntervalsOverlapping". What is your primary source of truth regarding this package? There is little about this topic on the internet outside the js-temporal repo.

Ответить
@Krejstrup
@Krejstrup - 29.03.2022 14:41

Nice! Thanks for showing this

Ответить
@ricmorris9758
@ricmorris9758 - 29.03.2022 14:40

Oh great. A new none and not actually ISO standard for zoned date/times. Just what we need when established W3C best practice is to keep the ISO date time and TK zone as seperate properties

Ответить
@r.m.2305
@r.m.2305 - 29.03.2022 12:51

bye bye momentJS, luxon and all the other ones. looking forward to this becoming a standard!

Ответить
@hoekbrwr
@hoekbrwr - 29.03.2022 12:33

I was always fighting with the date-time type. This explanation of Temporal Date shows it can be much easier to work with dates. This is about the difference between C and C++ in difficulty level.

Ответить
@richardramos7267
@richardramos7267 - 29.03.2022 05:58

Man that's awesome, thank you

Ответить
@modolief
@modolief - 28.03.2022 19:28

Great stuff! And I like the time efficiency of the presentation style (pun intended).

Ответить
@lisali6205
@lisali6205 - 28.03.2022 05:49

thank you.

Ответить
@penggao2615
@penggao2615 - 28.03.2022 00:15

Very helpful and detailed tutorial ! Thanks Kyle

Ответить
@krtirtho
@krtirtho - 27.03.2022 09:29

I voted up Temporal API in the tc39 request. Now, I feel prouder than ever before

Ответить
@scottthompson2022
@scottthompson2022 - 27.03.2022 02:44

Well I could've used this on my last project a month ago 🙃 thanks for sharing!

Ответить
@muhammadzaakirmungrue3146
@muhammadzaakirmungrue3146 - 26.03.2022 10:22

For too many years I have been working with Date(). It is fun now and I like it , its cool how time in javascript must be calculated from the difference in milliseconds from January 1st 1970. Here is some code for getting date and time in plain ES6 function formatMessage(username, text) {
let ts = Date.now();

let date_ob = new Date(ts);
let date = date_ob.getDate();
let month = date_ob.getMonth() + 1;
let year = date_ob.getFullYear();
let hour = date_ob.getHours();
let min = date_ob.getMinutes();
return {
username,
text,
time: year + "-" + month + "-" + date + " " + hour + ":" + min
};
}🤓

Ответить
@CuriousSpy
@CuriousSpy - 25.03.2022 14:22

So basically someone ported Rust date api to js

Ответить
@MatthewMichalsky
@MatthewMichalsky - 24.03.2022 05:09

Your definition of “new” is vague

Ответить
@Tonaldo90
@Tonaldo90 - 23.03.2022 13:13

But moment and date-fns exists so.. ? And datefns is lightweight af

Ответить
@rockNbrain
@rockNbrain - 23.03.2022 05:39

Great job Kyle! Tks

Ответить
@Barnardrab
@Barnardrab - 23.03.2022 04:37

I'm excited for this.

Ответить
@mag2XYZ
@mag2XYZ - 22.03.2022 19:45

Why is this an API? Couldn't all of this just be done in a library?

Ответить
@razimomin9540
@razimomin9540 - 22.03.2022 18:57

Hi kyle please make a video on how to create games like chess and ludo in javascript

Ответить
@thedbros1966
@thedbros1966 - 22.03.2022 12:46

Why does he look like reaction time

Ответить
@ChamathNimantha
@ChamathNimantha - 22.03.2022 06:27

Awesome, very informative.

Ответить
@heathbruce9928
@heathbruce9928 - 22.03.2022 04:16

Console.table might help with your arrays

Ответить
@CharlesSmall
@CharlesSmall - 22.03.2022 04:08

Thank you i still learning javas script. It is helpfull.

Ответить
@giancarloandrebravoabanto7091
@giancarloandrebravoabanto7091 - 22.03.2022 02:24

we dont need to use more APIs but clases to restringing the default behaviour 👊

Ответить
@waitwhaaat7949
@waitwhaaat7949 - 21.03.2022 23:17

Yea morning sunshine. It's been for a while

Ответить
@clebsgaming92
@clebsgaming92 - 21.03.2022 23:14

Thank you for the video Kyle!

Ответить
@djanthony6662
@djanthony6662 - 21.03.2022 18:13

damn.

Ответить