News for hackers. Stuff that matters.
Re:Ask HN: Did you encounter any leap year bugs today? by rfoo on Sunday March 03, 2024 @04:25AM (#39579631)
Thanks! It does this according to doc:

    This method adds the specified amount to the years field in three steps:
      * Add the input years to the year field
      * Check if the resulting date would be invalid
      * Adjust the day-of-month to the last valid day if necessary
TIL. I didn't know that Java had a builtin calendar (instead of datetime) library.

There are no comments on this comment yet.