using System;
using System.Globalization;
public class Test
{
public static void Main()
{
DateTimeOffset firstTime = new DateTimeOffset(2010, 9, 1, 6, 45, 0, new TimeSpan(-7, 0, 0));
object secondTime = firstTime;
Console.WriteLine("{0} = {1}: {2}", firstTime, secondTime, firstTime.Equals(secondTime));
secondTime = new DateTimeOffset(2010, 9, 1, 6, 45, 0, new TimeSpan(-6, 0, 0));
Console.WriteLine("{0} = {1}: {2}", firstTime, secondTime, firstTime.Equals(secondTime));
secondTime = new DateTimeOffset(2010, 9, 1, 8, 45, 0, new TimeSpan(-5, 0, 0));
Console.WriteLine("{0} = {1}: {2}", firstTime, secondTime, firstTime.Equals(secondTime));
secondTime = null;
Console.WriteLine("{0} = {1}: {2}", firstTime, secondTime, firstTime.Equals(secondTime));
secondTime = new DateTime(2010, 9, 1, 6, 45, 00);
Console.WriteLine("{0} = {1}: {2}", firstTime, secondTime, firstTime.Equals(secondTime));
}
}