4 ms·
Seems like JS could have called it `getYearOffset1900`, or `getYearOffet`, etc, rather than `getYear`.
by wewtyflakes 1y ago
Seems like JS could have called it `getYearOffset1900`, or `getYearOffet`, etc, rather than `getYear`.
- porridgeraisin 1y agoAgreed. What I've read is that they basically duplicated the Java API, which had getYear() I suppose the offset method was really quite entrenched so no one thought to special case that function, instead special casing the "2025" returning getFullYear()