UTCNow <> GMT

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi there

I'm trying to use the IsDaylightSavingTime property of the datetime
object.

The PC I am using is in GMT,

DateTime.Now.IsDaylightSavingTime() returns true
DateTime.UtcNow.IsDaylightSavingTime() returns false

The times also differ by 1 hour.

As far as I was aware, GMT = UTC

http://www.dxing.com/utcgmt.htm

But quite evidently .NET thinks otherwise. I desperately need a
resolution to this.

Any idea how I get the time in GMT with VB.NET? Obviously UtcNow is
*not* an option.

Thanks in advance.

Nick.


.



Relevant Pages

  • Re: Performance hit because of Datetime.Now
    ... getting current datetime by following way is much more ... result to the local time zone. ... UtcNow is about 50x faster.- Hide quoted text - ... ToLocalTime. ...
    (microsoft.public.dotnet.framework)
  • Re: Performance hit because of Datetime.Now
    ... & also CPU utilization increases. ... getting current datetime by following way is much more ... static DateTime dateTime = DateTime.Now; ... UtcNow is about 50x faster. ...
    (microsoft.public.dotnet.framework)