News for hackers. Stuff that matters.
Re:XYPlorer Is Written in VB6 by MrBuddyCasino on Saturday January 11, 2025 @07:15AM (#42665371)
> Just look at time and floating point numbers in Java

What do you mean? The time & date API in Java is excellent, and the float and double types follow the IEEE standard.

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.
Re:XYPlorer Is Written in VB6 by IshKebab on Saturday January 11, 2025 @04:52PM (#42669214)
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!

Re:XYPlorer Is Written in VB6 by divbzero on Sunday January 12, 2025 @12:05AM (#42671420)
getYear() must have been written in the 1990s during the early years of Java:

   95 = 1995
   96 = 1996
   97 = 1997
   98 = 1998
   99 = 1999
  100 = 2000 !?