1
withWeekOfWeekyear를 java.time으로 변환하려고합니다. weekWfkBasedYear와 비교하여 withWeekOfWeekyear와 다른 오프셋을 얻는 이유를 알아낼 수 없습니다.withWeekOfWeekyear가 왜 다른 오프셋을 제공합니까?
DateTime dateTimeWeek = new DateTime().withWeekOfWeekyear(1);
OffsetDateTime offsetDateTimeWeek = OffsetDateTime.now().with(WeekFields.ISO.weekOfWeekBasedYear(), 1);
DateTime dateTime = new DateTime();
OffsetDateTime offsetDateTime = OffsetDateTime.now();
System.out.println(dateTimeWeek); // 2016-01-04T12:20:50.981-05:00
System.out.println(offsetDateTimeWeek); // 2016-01-04T12:20:51.034-04:00
System.out.println(dateTime); // 2016-07-18T12:20:51.101-04:00
System.out.println(offsetDateTime); // 2016-07-18T12:20:51.101-04:00