我有这段代码
Calendar c = Calendar.getInstance();
c.set(Calendar.YEAR, year);
c.set(Calendar.MONTH, month - 1);
c.set(Calendar.DAY_OF_MONTH, 1);
当你得到c.get(Calendar.WEEK_OF_YEAR)
时,它产生不同的周数
示例c.set(2016, Calendar.JANUARY, 1);
一个Android手机产生c.get(Calendar.WEEK_OF_YEAR)
= 1
另一个是c.get(Calendar.WEEK_OF_YEAR)
= 53