TimeZoneInfo.Utc Property (System) - Microsoft Learn
Maybe your like
Gets a TimeZoneInfo object that represents the Coordinated Universal Time (UTC) zone.
public: static property TimeZoneInfo ^ Utc { TimeZoneInfo ^ get(); }; public static TimeZoneInfo Utc { get; } static member Utc : TimeZoneInfo Public Shared ReadOnly Property Utc As TimeZoneInfoProperty Value
TimeZoneInfoAn object that represents the Coordinated Universal Time (UTC) zone.
Examples
The following example retrieves a TimeZoneInfo object that represents Coordinated Universal Time (UTC) and outputs its display name, standard time name, and daylight saving time name.
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)Remarks
This is a built-in object; information about this TimeZoneInfo object is not retrieved from the registry on Windows systems and from the ICU Library on Linux and macOS.
Important
You should always access the Coordinated Universal Time (UTC) zone through the TimeZoneInfo.Utc property rather than assigning the UTC time zone to a TimeZoneInfo object variable. This prevents the TimeZoneInfo object variable from being invalidated by a call to the ClearCachedData method.
Coordinated Universal Time was previously known as Greenwich Mean Time (GMT).
Applies to
See also
- How to: Access the Predefined UTC and Local Time Zone Objects
Tag » What Time Is Utc -8
-
Warning
-
UTC
-
Coordinated Universal Time - UTC
-
Current Local Time In UTC, Coordinated Universal Time
-
UTC+9 Time Now GMT+9
-
UTC+13:00 - Wikipedia
-
UTC Time Now - World Time Clock
-
Maputo Time To UTC Conversion - World Clock
-
UTC Vs. UT1 Time (and Other Nuances)
-
Coordinated Universal Time - IBM
-
Coordinated Universal Time (Time Zone Support In Geo SCADA ...
-
Timezone PET (Peru Time)
-
UTC - Coordinated Universal Time: Current Local Time
-
How UTC Offsets Affect Datetime Expressions - HighBond