Java Calendar adds a random number of milliseconds?

后端 未结 4 882
栀梦
栀梦 2021-01-21 14:59

Hi I have something weird happening. I am simply taking a calendar object, converting it to its individual parts, and putting it back into a calendar (with or without any change

4条回答
  •  不要未来只要你来
    2021-01-21 15:45

    As per my comments under your question , there is only difference in seconds and milliseconds between startCalendar and calendarStart time, because that values were not reset.

    See DEMO

提交回复
热议问题