Determines whether the current TimeZoneInfo object and another TimeZoneInfo object are equal.
using System; public class Example { public static void Main() { TimeZoneInfo thisTimeZone, zone1, zone2; thisTimeZone = TimeZoneInfo.Local; zone1 = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time"); zone2 = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time"); Console.WriteLine(thisTimeZone.Equals(zone1)); Console.WriteLine(thisTimeZone.Equals(zone2)); } }