using System; using System.Globalization; public class Test
{ public static void Main()
{
DateTimeOffset currentDate = new DateTimeOffset(2008, 5, 10, 5, 32, 16, DateTimeOffset.Now.Offset);
TimeSpan currentTime = currentDate.TimeOfDay;
Console.WriteLine("The current time is {0}.", currentTime.ToString());
}
}