When setting or getting the WEEK_OF_MONTH or WEEK_OF_YEAR fields, Calendar must determine the first week of the month or year as a reference point. The first week of a month or year is defined as the earliest seven day period beginning on getFirstDayOfWeek() and containing at least getMinimalDaysInFirstWeek() days of that month or year. Weeks numbered …, -1, 0 precede the first week; weeks numbered 2, 3,… follow it. Note that the normalized numbering returned by get() may be different. For example, a specific Calendar subclass may designate the week before week 1 of a year as week n of the previous year.
java calendar sunday_Java Calendar.set(Calendar.DAY_OF_WEEK,Calendar.SUNDAY),它会向后,向前还是未知?...
最新推荐文章于 2023-09-08 10:13:03 发布