News for hackers. Stuff that matters.
Re:Temporal: Getting started with JavaScript's new date time... by strbean on Monday June 28, 2021 @02:09PM (#27665382)
This might be silly, but I kind of wish Date-with-Timezone types existed. It would be nice to be able to take a date and ask "Is does timestamp X fall within date Y", where Y is a calendar day in a particular place.
Re:Temporal: Getting started with JavaScript's new date time... by bmuon on Monday June 28, 2021 @03:19PM (#27666478)
You don't need a zoned date. You can invert the question and ask if a zoned datetime falls within a plain date.

Temporal is very well designed thanks to building on years of prior art. Give it a try and you'll realize that it leads you to ask those questions the right way.