News for hackers. Stuff that matters.
Re:New Date("WTF") – How well do you know JavaScript's Date ... by NoInkling on Sunday July 13, 2025 @03:45AM (#44548339)
Yeah a lot of these popular libraries - including Moment, Luxon, Day.js - commit the sin of using a single type of object for distinct concepts. Absolute time, civil time? Basically the same thing right? Just shoehorn them both in.
Re:New Date("WTF") – How well do you know JavaScript's Date ... by agos on Sunday July 13, 2025 @04:17AM (#44548512)
I can understand why JS' Date is the way it is, but Moment, and even more so Luxon and Day.js, have no excuses - Joda Time has been around since what, 2005?