Author | Message | Time |
---|---|---|
dRAgoN | What 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, 1:01 PM |
RealityRipple | (DateTime.UtcNow - DateTime.Now).TotalMinutes | May 13, 2010, 8:43 PM |
dRAgoN | [code]My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation\", "ActiveTimeBias", &H0UI)[/code] doing it that way i need to add 60 to it, just want to call it and be done with it ;) edit: my solution still dosent answer where that property went that was in the class lol. | May 13, 2010, 11:45 PM |
MyStiCaL | maybe the system.timezone class? | May 21, 2010, 4:59 AM |
dRAgoN | [quote author=Mystical link=topic=18236.msg184916#msg184916 date=1274417967] maybe the system.timezone class? [/quote]If you looked in that class you wouldent be saying maybe. | May 21, 2010, 11:37 AM |
Yegg | [quote author=l)ragon link=topic=18236.msg184919#msg184919 date=1274441871] [quote author=Mystical link=topic=18236.msg184916#msg184916 date=1274417967] maybe the system.timezone class? [/quote]If you looked in that class you wouldent be saying maybe. [/quote] 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, 1:49 PM |
dRAgoN | [quote author=Yegg link=topic=18236.msg184920#msg184920 date=1274449788] [quote author=l)ragon link=topic=18236.msg184919#msg184919 date=1274441871] [quote author=Mystical link=topic=18236.msg184916#msg184916 date=1274417967] maybe the system.timezone class? [/quote]If you looked in that class you wouldent be saying maybe. [/quote] 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. [/quote] Originaly System.Time.CurrentTimeZone.Bias | May 21, 2010, 4:46 PM |