TimeZoneInfo.Utc 속성

정의

UTC(협정 세계시) 영역을 나타내는 TimeZoneInfo 개체를 가져옵니다.

public:
 static property TimeZoneInfo ^ Utc { TimeZoneInfo ^ get(); };
public static TimeZoneInfo Utc { get; }
static member Utc : TimeZoneInfo
Public Shared ReadOnly Property Utc As TimeZoneInfo

속성 값

UTC(협정 세계시) 영역을 나타내는 개체입니다.

예제

다음 예제에서는 UTC(협정 세계시)를 나타내는 개체를 검색 TimeZoneInfo 하고 표시 이름, 표준 시간 이름 및 일광 절약 시간제를 출력합니다.

TimeZoneInfo universalZone = TimeZoneInfo.Utc;
Console.WriteLine("The universal time zone is {0}.", universalZone.DisplayName);
Console.WriteLine("Its standard name is {0}.", universalZone.StandardName);
Console.WriteLine("Its daylight savings name is {0}.", universalZone.DaylightName);
let universalZone = TimeZoneInfo.Utc
printfn $"The universal time zone is {universalZone.DisplayName}."
printfn $"Its standard name is {universalZone.StandardName}."
printfn $"Its daylight savings name is {universalZone.DaylightName}."
Dim universalZone As TimeZoneInfo = TimeZoneInfo.Utc
Console.WriteLine("The universal time zone is {0}.", universalZone.DisplayName)
Console.WriteLine("Its standard name is {0}.", universalZone.StandardName)
Console.WriteLine("Its daylight savings name is {0}.", universalZone.DaylightName)

설명

기본 제공 개체입니다. 이 TimeZoneInfo 개체에 대한 정보는 Windows 시스템의 레지스트리 및 Linux 및 macOS의 ICU 라이브러리 에서 검색되지 않습니다.

중요

개체 변수에 UTC 표준 시간대를 할당하는 대신 속성을 통해 TimeZoneInfo.Utc 항상 UTC(협정 세계시) 영역에 TimeZoneInfo 액세스해야 합니다. 이렇게 하면 메서드를 TimeZoneInfo 호출 ClearCachedData 하여 개체 변수가 무효화되지 않습니다.

조정된 유니버설 타임은 이전에 그리니치 표준시(GMT)로 알려졌습니다.

적용 대상

추가 정보