Rui Carlos Posted January 24, 2025 at 07:08 PM Report #634414 Posted January 24, 2025 at 07:08 PM Boas notícias, parece que o JavaScript começa a chegar ao séc. XXI 😄 Citação Implementations of the new JavaScript Temporal object are starting to be shipped in experimental releases of browsers. This is big news for web developers because working with dates and times in JavaScript will be hugely simplified and modernized. [...] What is JavaScript Temporal? To understand Temporal, we can look at JavaScript's Date object. When JavaScript was created in 1995, the Date object was copied from Java's early, flawed java.util.Date implementation. Java replaced this implementation in 1997, but JavaScript is stuck with the same API for almost 30 years, despite known problems. [...] Temporal is designed as a full replacement for the Date object, making date and time management reliable and predictable. Temporal adds support for time zone and calendar representations, many built-in methods for conversions, comparisons and computations, formatting, and more. The API surface has over 200 utility methods, and you can find information about all of them in the Temporal docs on MDN. [...] Fonte: https://developer.mozilla.org/en-US/blog/javascript-temporal-is-coming/ Rui Carlos Gonçalves
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now