Subject: Re: GetTimeZoneDiff() documentation missing From: Camille Kater Date: Mon, 16 Jun 2014 17:26:51 +0200 Message-ID: <1402933274_5@vo.lu> References: <1402661063_1@vo.lu> Lines: 44 NNTP-Posting-Host: 83.99.45.244 Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!news.vo.lu!not-for-mail Newsgroups: comp.lang.clipper.visual-objects X-Trace: vo.lu 1402933274 83.99.45.244 (16 Jun 2014 17:41:14 0200) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 140616-0, 16/06/2014), Outbound message X-Antivirus-Status: Clean Xref: csiph.com comp.lang.clipper.visual-objects:6967 Hi Karl-Heinz, I would be very interested in those VO functions. Thanks Camille On 15/06/2014 18:27, Karl-Heinz wrote: > 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 >