MCQs>IT & Programming>C#>Assuming the local system time offset is UTC+5, what does the following program output? using System; public class Program { public static void Main() { DateTime time1 = new DateTime(2000, 1, 1, 10, 45, 0, DateTimeKind.Local); DateTime time2 = new DateTime(2000, 1, 1, 10, 45, 0, DateTimeKind.Utc); TimeSpan span = time2 - time1; Console.WriteLine(span); } }
C# MCQs
Assuming the local system time offset is UTC+5, what does the following program output? using System; public class Program { public static void Main() { DateTime time1 = new DateTime(2000, 1, 1, 10, 45, 0, DateTimeKind.Local); DateTime time2 = new DateTime(2000, 1, 1, 10, 45, 0, DateTimeKind.Utc); TimeSpan span = time2 - time1; Console.WriteLine(span); } }
Answer
Correct Answer: 00:00:00
Explanation:
Note: This Question is unanswered, help us to find answer for this one