TimeZoneInfo.ConvertTimeFromUtc c#
问题 var Result1 = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.Local) var Result2 = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById(TimeZoneInfo.Local.Id)); Both this convert Utc time to local time, is there any difference between this 2 different ways in result or performance? which is good? why Microsoft not using TimeZoneInfo.Local directly(as for Result1) in sample here 回答1: The only difference is that the second takes a detour by getting