Thansk for help. Just sorry, I was not able to see the code of date_offset_get function, but just usage examples. Maybe you mean I should use interface a PHP tool in order to use such function?
----- Original Message ----- From: Smith David G (Finance) To: [email protected] Sent: Tuesday, November 10, 2009 5:48 PM Subject: RE: [delphi-en] conversions between UTC and local time Maybe does not help you, but it's available in PHP 5.2: http://www.php.net/manual/en/datetime.getoffset.php -----Original Message----- > 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? ---------- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/delphi-en/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

