3 ms·
Nice, it looks to be quite similar to the Java 8 date/time APIs (java.time.*), which are excellent. Looking forward to this!
by yashap 5y ago
Nice, it looks to be quite similar to the Java 8 date/time APIs (java.time.*), which are excellent. Looking forward to this!
- bluedevil2k 5y agoThere’s a direct JS port of Java time as well - https://js-joda.github.io/js-joda/ https://js-joda.github.io/js-joda/
- ferdowsi 5y agoIronic because Javascript's Date behavior was also modeled after the original java.Util.Date (which was immediately deprecated, whoops).
- stickfigure 5y agoWhy is that ironic?
- lstamour 5y agoBecause copying Java got them into this mess? ;-)
- yashap 5y agoYeah, but the Java 8 date/time API has been around for ~7-8 years, and is basically universally loved, while the original java.util.Date was hated for ages. Plus Java 8 date/time is based extremely strongly on joda-time, which hit 1.0 about a decade before that, and was also pretty universally loved. So we're dealing with an API that has been considered great, and an excellent way to deal with dates/times, for nearly 2 decades. Seems like a safe bet to copy :)