Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Karl-Heinz" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: GetTimeZoneDiff() documentation missing Date: Sun, 15 Jun 2014 18:27:25 +0200 Lines: 21 Message-ID: References: <1402661063_1@vo.lu> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Trace: individual.net Y5rfSrXG3ZcFEQduAEqmywaFaYjFEG3eEAMU1WldjsRkTW5Vo= Cancel-Lock: sha1:+huUc4o6FULcQsHMRU5Gs3cT4oM= In-Reply-To: X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 Xref: csiph.com comp.lang.clipper.visual-objects:6961 Hi Jamal, > I wrote some VO function to do the Unix Epoch time conversion which I am > still testing for accuracy for different time zones and daylight savings. > I did not have to use the GetTimeZoneDiff(). yes, i doubt that GetTimeZoneDiff() does anything useful. Assuming the func should return the bias in hours, it should return in a german environment -2, (UTC+01:00 + 1 hour daylight ). But if it would work as one might expect it would fail in timezones like "Adelaide UTC+09:30 ". In such cases the minutes are truncated because GetTimeZoneDiff() is declared as INT. Anyway, are you using in your VO code "SystemTimeToTzSpecificLocalTime" and "TzSpecificLocalTimeToSystemTime" to calc unix- <> windows-datetimestamps ? It seems that both funcs do not require any TimeZone calculations, and that they are smart enough to use automatically the correct bias on a given date. If you are interested iŽll put some VO snippets based on both funcs together. regards Karl-Heinz