Subject: Re: GetTimeZoneDiff() documentation missing From: Camille Kater Date: Sat, 14 Jun 2014 09:57:26 +0200 Message-ID: <1402733512_3@vo.lu> References: <1402661063_1@vo.lu> Lines: 78 NNTP-Posting-Host: 83.99.45.244 Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-2.dfn.de!news.dfn.de!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.vo.lu!not-for-mail Newsgroups: comp.lang.clipper.visual-objects X-Trace: vo.lu 1402733512 83.99.45.244 (14 Jun 2014 10:11:52 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: 7bit X-Antivirus: avast! (VPS 140613-1, 13/06/2014), Outbound message X-Antivirus-Status: Clean Xref: csiph.com comp.lang.clipper.visual-objects:6959 HI Jamal, Thanks for your reply. Please keep me informed about your Unix Epoch time conversion. I need those functions urgently. Camille On 13/06/2014 18:34, Jamal wrote: > Hi Camille, > > The function found Internet SDK function and the function in VO28RUN.DLL > are not the same. > > 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(). > > In the mean time I found the following in VB.NET. I'll probably create a > lib and convert COM if the above does work out. > > Create a winform app, then on the Form, create two lables, and a button. > > Private Sub Button1_Click(sender As Object, e As EventArgs) Handles > Button1.Click > Me.Label1.Text = UnixTime2DT(1318536660) > Me.Label2.Text = DT2UnixTime(Me.Label1.Text) > End Sub > > Public Function UnixTime2DT(lUnixTimeStamp As Long) As Date > UnixTime2DT = DateAdd("s", lUnixTimeStamp, #1/1/1970#) > End Function > > Public Function DT2UnixTime(ByVal dDate As Date) As Long > DT2UnixTime = DateDiff("s", #1/1/1970#, dDate) > End Function > > Jamal > > > "Camille Kater" wrote in message news:1402661063_1@vo.lu... > > Hi Jamal > > On my PC I get as return -1 > > I found this function in the Internet SDK, while I was searching for a > function to transform a Windows date to Unix Timestamp and vice-versa. > But until now I had no success. > Maybe there is somebody who can help with this Unix Timestamp ? > > Camille > > On 13/06/2014 00:39, Jamal wrote: >> The GetTimeZoneDiff() is not documented in the help file. >> >> Does anyone have the description of this function and what the return >> values mean? >> >> Thanks! >> Jamal >> >