언어

ZonedDateTime.WithMonth(Int32) 메서드

정의

연도가 변경된 이 ZonedDateTime의 복사본을 반환합니다.

[Android.Runtime.Register("withMonth", "(I)Ljava/time/ZonedDateTime;", "", ApiSince=26)]
public Java.Time.ZonedDateTime? WithMonth(int month);
[<Android.Runtime.Register("withMonth", "(I)Ljava/time/ZonedDateTime;", "", ApiSince=26)>]
member this.WithMonth : int -> Java.Time.ZonedDateTime

매개 변수

month
Int32

결과에 설정할 연도의 월(1월)에서 12월(12월)로

반품

요청된 월이 있는 이 날짜 시간을 기반으로 하는 ZonedDateTime(null이 아님)

특성

설명

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

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

적용 대상