Valhalla Legends Forums Archive | .NET Platform | TimeZone

AuthorMessageTime
l)ragonWhat is the equiv. to GetTimezineInformation in .Net.
When last I checked, I believe it was in "System.Time" which I guess was changed since 2002?
edit: For getting the Bias
May 13, 2010, 08:01 am
RealityRipple(DateTime.UtcNow - DateTime.Now).TotalMinutesMay 13, 2010, 03:43 pm
l)ragon
Code:
My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation\", "ActiveTimeBias", &H0UI)

doing it that way i need to add 60 to it, just want to call it and be done with it Wink

edit: my solution still dosent answer where that property went that was in the class lol.
May 13, 2010, 06:45 pm
Mysticalmaybe the system.timezone class? May 20, 2010, 11:59 pm
l)ragon
maybe the system.timezone class?
If you looked in that class you wouldent be saying maybe.
May 21, 2010, 06:37 am
Yegg
maybe the system.timezone class?
If you looked in that class you wouldent be saying maybe.
I looked at that class and similar classes and could not find anything to fit exactly what you're looking for. Hopefully I'm just missing something, because it seems odd that Windows API has something that does exactly what you need and .NET does not.

I found a few sites with .NET code that lead me to believe that the TIME_ZONE_INFORMATION structure is still what you would need to use.
May 21, 2010, 08:49 am
l)ragon
maybe the system.timezone class?
If you looked in that class you wouldent be saying maybe.
I looked at that class and similar classes and could not find anything to fit exactly what you're looking for. Hopefully I'm just missing something, because it seems odd that Windows API has something that does exactly what you need and .NET does not.

I found a few sites with .NET code that lead me to believe that the TIME_ZONE_INFORMATION structure is still what you would need to use.
Originaly
System.Time.CurrentTimeZone.Bias
May 21, 2010, 11:46 am