The source code to get the Coordinated Universal Time (UTC) zone is given below. The given program is compiled and executed successfully.
using System;
using System.Globalization;
using System.Collections.ObjectModel;
class TimeZoneInfoDemo
{
//Entry point of Program
static public void Main()
{
TimeZoneInfo universalTimeZone;
universalTimeZone = TimeZoneInfo.Utc;
Console.WriteLine("The universal time zone: " +universalTimeZone.DisplayName);
Console.WriteLine("Daylight savings name: " +universalTimeZone.DaylightName);
Console.WriteLine("Standard name: " +universalTimeZone.StandardName);
}
}
Output:
The universal time zone: UTC
Daylight savings name: UTC
Standard name: UTC
Press any key to continue . . .
Program:
The source code to get the Coordinated Universal Time (UTC) zone is given below. The given program is compiled and executed successfully.
Output: