Re:XYPlorer Is Written in VB6
by badlibrarian on Saturday January 11, 2025 @08:41AM
(#42665799)
It took nearly 20 years to sort it out. Before Java 8, January was 0 and getYear() for today would return 125.
Re:XYPlorer Is Written in VB6
by stefanfisk on Saturday January 11, 2025 @10:43AM
(#42666579)
Wasn’t Java 8 released 11 years ago? If PHP had been in its current state back then it would have been a masterpiece.
January as 0 seems like a very definsible choice. Presumably they did it to match C. If anything the WTF there is that the day of the month doesn't start from 0.
Dunno what's up with getYear() though!
What do you mean? The time & date API in Java is excellent, and the float and double types follow the IEEE standard.