Hacker News new | ask | show | jobs
by Bratmon 99 days ago
What would have been wrong with Temporal.now() returning a sensible value?
1 comments

What counts as a sensible value? The whole point of the library is to be explicitly about what kind of date/time data you're working with, because different kinds of data have to be handled in very different ways.
If they at least had a Temporal.nowlocal() and a Temporal.nowUTC() that returned a ZonedDateTime set to the local and UTC timezones respectively, that would be 95% of what developers need in practice.