using System;
using System.Collections.ObjectModel;
public class TimeOffsets
{
public static void Main()
{
DateTime localTime = DateTime.Now;
DateTimeOffset nonLocalDateWithOffset = new DateTimeOffset(localTime.Ticks, new TimeSpan(2, 0, 0));
Console.WriteLine(nonLocalDateWithOffset);
DateTime dateWithoutOffset = new DateTime(2007, 7, 16, 13, 32, 00);
DateTimeOffset timeFromTicks = new DateTimeOffset(dateWithoutOffset.Ticks, new TimeSpan(-5, 0, 0));
Console.WriteLine(timeFromTicks.ToString());
}
}