whether a date and time in a time zone is ambiguous and can be mapped to two or more Coordinated Universal Time (UTC) times.
using System;
public class Example
{
public static void Main()
{
DateTime baseTime = new DateTime(2010, 11, 4, 0, 59, 00, DateTimeKind.Unspecified);
DateTime newTime;
TimeZoneInfo pstZone = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time");
newTime = baseTime.AddMinutes(20);
Console.WriteLine("{0} is ambiguous: {1}", newTime, pstZone.IsAmbiguousTime(newTime));
}
}
Related examples in the same category