it's probably hard coded in the registry. --- On Mon, 11/9/09, mauro russo <[email protected]> wrote:
From: mauro russo <[email protected]> Subject: Re: [delphi-en] conversions between UTC and local time To: [email protected] Date: Monday, November 9, 2009, 11:48 AM Dear, is there at least some API giving the "next time" there will be a change on local time with respect UTC? ----- Original Message ----- From: Rob Kennedy To: [email protected] Sent: Tuesday, October 27, 2009 3:31 PM Subject: Re: [delphi-en] conversions between UTC and local time mauro russo wrote: > Dear all, > > I am using the following function in order to obtain the bias between local time and UTC: > > > function GetTimeZoneBias_min(): Integer; > var tz: TTimeZoneInformation; > begin > case GetTimeZoneInformation(tz) of > TIME_ZONE_ID_STANDARD: Result := -(tz.StandardBias + tz.Bias); > TIME_ZONE_ID_DAYLIGHT: Result := -(tz.DaylightBias + tz.Bias); > else > Result := 0; > end; > end; > > > and I use the result Res in the formula: locla_time = UTC + Res. > > > > Now, I would like to obtain the bias not at the current time, but according to a given UTC value. > > For example, now UTC is 9:47 at the 27th of october, > but how to obtain the bias when UTC was, for example, 8:35 at the 5th of july? If the StandardDate and DaylightDate members of TTimeZoneInformation don't have what you need, then Windows does not have what you need. -- Rob ---------- Questa email è stata verificata dal sistema centralizzato antivirus della UniPlan Software [Non-text portions of this message have been removed] ------------------------------------ ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [email protected]! Groups Links [Non-text portions of this message have been removed]

