DateTimeKind 열거형

정의

DateTime 개체가 현지 시간 또는 UTC(지역 표준시)를 나타내는지 아니면 현지 시간 또는 UTC로 지정되지 않는지 여부를 지정합니다.

public enum class DateTimeKind
public enum DateTimeKind
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum DateTimeKind
type DateTimeKind = 
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type DateTimeKind = 
Public Enum DateTimeKind
상속
DateTimeKind
특성

필드

Local 2

표시된 시간이 현지 시간입니다.

Unspecified 0

표시된 시간이 현지 시간 또는 UTC(지역 표준시)로 지정되지 않습니다.

Utc 1

표시된 시간이 UTC입니다.

설명

열거형의 DateTimeKind 멤버는 속성에 DateTime.Kind 의해 반환됩니다.

열거형의 DateTimeKind 멤버는 현지 시간과 UTC(협정 세계시) 간의 변환 작업에 사용되지만 비교 또는 산술 연산에서는 사용되지 않습니다. 시간 변환에 대한 자세한 내용은 표준 시간대 간 시간 변환을 참조하세요.

적용 대상