C# UTC TimeZone convert TimeSpan

Date: 2023-07-05
var offset = TimeZoneInfo.Local.GetUtcOffset(DateTime.Now);
Console.WriteLine(offset);

var time = TimeSpan.Parse("07:00");
Console.WriteLine(time);
Console.WriteLine(time.Subtract(offset)); // Convert to UTC time
78940cookie-checkC# UTC TimeZone convert TimeSpan