Re: NTP/NetRemoteTOD And a zone of time
- From: "Volodymyr M. Shcherbyna" <v_scherbina@xxxxxxxxxxxxxxx>
- Date: Tue, 13 May 2008 10:19:13 +0200
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?
.
- Follow-Ups:
- Re: NTP/NetRemoteTOD And a zone of time
- From: MagicWolf
- Re: NTP/NetRemoteTOD And a zone of time
- References:
- NTP/NetRemoteTOD And a zone of time
- From: MagicWolf
- NTP/NetRemoteTOD And a zone of time
- Prev by Date: Re: Simple email pop3/smtp source - I get a bind error
- Next by Date: Re: Virtual channel access violation in mstscax.dll with Vista SP1
- Previous by thread: NTP/NetRemoteTOD And a zone of time
- Next by thread: Re: NTP/NetRemoteTOD And a zone of time
- Index(es):
Relevant Pages
|
|