Комментарии:
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?
Ответитьplz tell how to make one line of code to multi line when you chain a lot of stuff say .duration.from.blablabla.
ОтветитьIf you want to know which stage is this, check this out, as of 24.Nov.2022, this is still at stage 3.
ОтветитьOkay I stopped using Dates, problem is Temporal is not implemented in any browser
ОтветитьThe Temporal API says "Don't use in production". Would you use in real world projects (with Polyfill) or wait for browsers to support?
ОтветитьYay now js can do something php did 81 years ago
ОтветитьWhen is this API set to be "production ready"?
Ответитьis it safe to use this in production apps in node js?
Ответитьfamily
ОтветитьThis has been more magical than Excel's date/time/duration functions. I'm in awe. Thank you!
Ответить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 -_-
I swear i cried when i saw the easy is to add days on a date. OMG
Ответитьeasily the best dating advice I've seen
ОтветитьFinally
ОтветитьTrue. Datetimes are absolutely awful to work with, can't wait to see the new API in action natively.
Ответить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.
ОтветитьCarbon is another useful tool to work with date time.
Ответить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.
Ответитьwhy all this when you could use dayjs? dayjs is 600kb this polyfill is 4MB
Ответитьpronounced temperal not temp-oral. Tempus, temporis is Latin and the o is short.
Ответить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.
ОтветитьNice! Thanks for showing this
Ответить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
Ответитьbye bye momentJS, luxon and all the other ones. looking forward to this becoming a standard!
Ответить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.
ОтветитьMan that's awesome, thank you
ОтветитьGreat stuff! And I like the time efficiency of the presentation style (pun intended).
Ответитьthank you.
ОтветитьVery helpful and detailed tutorial ! Thanks Kyle
ОтветитьI voted up Temporal API in the tc39 request. Now, I feel prouder than ever before
ОтветитьWell I could've used this on my last project a month ago 🙃 thanks for sharing!
Ответить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
};
}🤓
So basically someone ported Rust date api to js
ОтветитьYour definition of “new” is vague
ОтветитьBut moment and date-fns exists so.. ? And datefns is lightweight af
ОтветитьGreat job Kyle! Tks
ОтветитьI'm excited for this.
ОтветитьWhy is this an API? Couldn't all of this just be done in a library?
ОтветитьHi kyle please make a video on how to create games like chess and ludo in javascript
ОтветитьWhy does he look like reaction time
ОтветитьAwesome, very informative.
ОтветитьConsole.table might help with your arrays
ОтветитьThank you i still learning javas script. It is helpfull.
Ответитьwe dont need to use more APIs but clases to restringing the default behaviour 👊
ОтветитьYea morning sunshine. It's been for a while
ОтветитьThank you for the video Kyle!
Ответитьdamn.
Ответить