I have the following code:
var minhaData = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(DateTime.UtcNow, meuTimeZone);
If meuTimeZone = "E. South America Standard Time";
then the value returned to minhaData
is timezone -03:00
.
Is it possible to somehow get this value in hours (in this case -03:00
) based on meuTimeZone
or minhaData
?