Why does a new SimpleDateFormat object contain calendar with the wrong year?

后端 未结 5 600
暖寄归人
暖寄归人 2020-12-20 15:54

I came upon a strange behavior that has left me curious and without a satisfactory explanation as yet.

For simplicity, I\'ve reduced the symptoms I\'ve noticed to th

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-20 16:28

    You are investigating internal behaviour. If this goes outside the published API then you are seeing undefined stuff, and you should not care about it.

    Other than that, I belive that the year 1929 is used for considering when to interpret a two digit year as being in the 19xx instead of the 20xx.

提交回复
热议问题