Re: NTP/NetRemoteTOD And a zone of time



If you specify NULL as lpTimeZone into SystemTimeToTzSpecificLocalTime it
will be using currently active time zone. If you need, say time in UTC + 1,
you have to adjust appropriatly the "Bias" member of structure
TIME_ZONE_INFORMATION. You have to keep in mind, the formula

UTC = local time + bias

Where bias is different between local time and UTC in minutes, so if you
want to calculate (UTC + 1) the bias has to be equal to -60, if you want to
calculate (UTC + 2) bias has to be equal to -120, and so on.

You can find a useful example at
http://www.codeproject.com/KB/winsdk/WorldTime.aspx

Good luck,

--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.
"MagicWolf" <MagicWolf@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B51BE0A7-4631-4997-AFA3-066D71E68E24@xxxxxxxxxxxxxxxx
Hello!

With help NTP or NetRemoteTOD I receive time in Coordinated Universal Time
(UTC). Then with help SystemTimeToTzSpecificLocalTime I change its time of
the appropriate current time zone. But I should receive time in other time
zone, for this purpose correctly it is necessary to determine
TIME_ZONE_INFORMATION. If in WinAPI function for formation
TIME_ZONE_INFORMATION for an any time zone?





.



Relevant Pages

  • Re: Question about ISO8601 vs. strftime()
    ... online references to ISO8601 just get it wrong? ... that link only shows the form with the UTC ... but not the offset as far as I can tell. ... assumed to be in some local time zone. ...
    (comp.programming)
  • Re: Time Zones as politics
    ... be in a different time zone from his arch-rival, ... we are not permitted to criticize him in any way because after ... UTC +5 AKA Eastern Standard Time. ... Soon upon the establishment of the Greenwhich Meridian as the time ...
    (alt.horology)
  • Re: Received mail timestamp is off by 7 hours
    ... It should be one hour ahead of UTC right now. ... Notice that the timestamp on your local e-mail server corresponds to ... the CMOS real-time clock should be set to ... UTC and fix your time zone to match your location. ...
    (freebsd-questions)
  • Re: SWbemDateTime to Win 2k Compatible
    ... UUU is number of minutes to subtract from current time to get UTC. ... The TimeWritten property is not an Integer8 value, ... ' Get current date/time less 2 hours. ... This assumes your time zone bias is -480 minutes. ...
    (microsoft.public.scripting.vbscript)
  • Re: Changing time zone on AD Domain Controllers
    ... The computer does its thinking in UTC, regardless of the TZ and DST changes you make, it doesn't change internally. ... have impact on the internal workings; it is simply for displaying the ... As long as you are changing the time zone because of the time zone, ...
    (microsoft.public.win2000.active_directory)