340
(bloomberg.github.io)
kemitchell | 4 minutes ago | 1 Comment
Har har.
VanCoding | 3 hours ago | 8 Comment
This is not the case for Temporal objects. Also, the temporal objects have functions on them, which, granted, makes it convenient to use, but a pain to pass it over the wire.
I'd clearly prefer a set of pure functions, into which I can pass data-only temporal objects, quite a bit like date-fns did it.
Show Reply 8 [+]
nekevss | 3 hours ago | 1 Comment
Congrats to all the champions who worked super hard on this for so long! It's been fun working on temporal_rs for the last couple years :)
julius_eth_dev | 59 minutes ago | 1 Comment
alanning | 16 minutes ago | 1 Comment
https://tc39.es/proposal-temporal/docs/cookbook.html
For example, calc days until a future date: https://tc39.es/proposal-temporal/docs/cookbook.html#how-man...
...or, compare meeting times across timezones: https://tc39.es/proposal-temporal/docs/cookbook.html#book-a-...
plucas | 3 hours ago | 3 Comment
Given that the article refers to the "radical proposal" to bring these features to JavaScript came in 2018, surely Java's own solutions had some influence?
Show Reply 3 [+]
the__alchemist | 59 minutes ago | 1 Comment
From the link, we can see Temporal does have separate Date/Time/Datetime types. ("PlainDate" etc)
xp84 | 1 hour ago | 1 Comment
wpollock | 2 hours ago | 1 Comment
This is funny to me; Java's util.Date was almost certainly a port of C's time.h API!
bnb | 4 hours ago | 4 Comment
Show Reply 4 [+]
zvqcMMV6Zcr | 3 hours ago | 3 Comment
Safari confirmed as IE Spiritual successor in 2020+.
Show Reply 3 [+]
johncomposed | 1 hour ago | 1 Comment
tracker1 | 1 hour ago | 3 Comment
Show Reply 3 [+]
hungryhobbit | 2 hours ago | 2 Comment
const now = new Date();
The Temporal equivalent is: const now = Temporal.Now.zonedDateTimeISO();
Dear god, that's so much uglier!I mean, I guess it's two steps forward and one step back ... but couldn't they have come up with something that was just two steps forward, and none back ... instead of making us write this nightmare all over the place?
Why not?
const now = DateTime();Show Reply 2 [+]
kemayo | 2 hours ago | 1 Comment
It's weird that they picked example code that is extremely non-accidentally doing this.
SoftTalker | 2 hours ago | 1 Comment
philipallstar | 3 hours ago | 3 Comment
I didn't spot how Temporal fixes this. What happens when "now" changes? Does the library get updated and pushed out rapidly via browsers?
Show Reply 3 [+]
redbell | 3 hours ago | 1 Comment
samwho | 4 hours ago | 1 Comment
ventuss_ovo | 54 minutes ago | 1 Comment
sharktheone | 3 hours ago | 1 Comment
normie3000 | 3 hours ago | 1 Comment
darepublic | 2 hours ago | 8 Comment
Show Reply 8 [+]
jon_kuperman | 4 hours ago | 1 Comment
ChrisArchitect | 3 hours ago | 1 Comment
Date is out, Temporal is in
virgil_disgr4ce | 3 hours ago | 1 Comment
newzino | 2 hours ago | 1 Comment
aplomb1026 | 2 hours ago | 1 Comment
ilovesamaltman | 1 hour ago | 1 Comment
patchnull | 58 minutes ago | 1 Comment