언어

ZonedDateTime.PlusWeeks(Int64) 메서드

정의

지정된 주 수가 추가된 이 ZonedDateTime의 복사본을 반환합니다.

[Android.Runtime.Register("plusWeeks", "(J)Ljava/time/ZonedDateTime;", "", ApiSince=26)]
public Java.Time.ZonedDateTime? PlusWeeks(long weeks);
[<Android.Runtime.Register("plusWeeks", "(J)Ljava/time/ZonedDateTime;", "", ApiSince=26)>]
member this.PlusWeeks : int64 -> Java.Time.ZonedDateTime

매개 변수

weeks
Int64

추가할 주, 음수일 수 있음

반품

null이 아닌 추가된 주가 있는 이 날짜-시간을 기반으로 하는 ZonedDateTime

특성

설명

지정된 주 수가 추가된 이 ZonedDateTime의 복사본을 반환합니다. 이는 현지 시간에서 작동하며, 현지 날짜-시간에 주를 추가합니다. 그런 다음 영역 ID를 사용하여 오프셋을 가져오는 ZonedDateTime으로 다시 변환됩니다. 다시 ZonedDateTime으로 변환할 때 로컬 날짜-시간이 겹치는 경우 가능한 경우 오프셋이 유지되고, 그렇지 않으면 이전 오프셋이 사용됩니다. 간격이 있는 경우 간격의 길이에 따라 현지 날짜-시간이 앞으로 조정됩니다. 이 인스턴스는 변경할 수 없으며 이 메서드 호출의 영향을 받지 않습니다.

에 대한 java.time.ZonedDateTime.plusWeeksJava 참조

적용 대상