Thursday, May 27, 2010

Subroutine to apply Daylight Bias to display time in local DST?

Programmer Question

UK is currently 1 hour ahead of UTC due to Daylight Savings Time. When I check the Daylight Bias value from GetTimeZoneInformation it is currently -60. Does that mean that translating UTC to DST means DST = UTC + -1 * DaylightBias, ie negate and add?



I thought in this case for instance adding Daylight Bias to UTC is the correct operation, hence requiring DaylightBias to be 60 rather than -60.



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails