News for hackers. Stuff that matters.
Re:JavaScript Temporal Is Coming by Cthulhu_ on Thursday January 30, 2025 @09:12AM (#42877811)
Are those open source APIs standardized though? JS and browser standards are a different beast altogether than e.g. date library documentation. They need to write and specify exact behaviour, so that multiple implementations can be written by all relevant parties.
Re:JavaScript Temporal Is Coming by burntsushi on Thursday January 30, 2025 @09:22AM (#42877918)
Indeed. For anyone interested in Temporal specifically, they can see the proposal here: https://tc39.es/proposal-temporal/

Here's an example of the specification for computing the duration between two dates: https://tc39.es/proposal-temporal/#sec-temporal-calendardate...

(I picked one of the "simpler" ones. Have fun.)