Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #6958

Re: GetTimeZoneDiff() documentation missing

From "Jamal" <someone@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: GetTimeZoneDiff() documentation missing
Date 2014-06-13 12:34 -0400
Organization Aioe.org NNTP Server
Message-ID <lnf96h$6bi$1@speranza.aioe.org> (permalink)
References <lnda6q$fp4$1@speranza.aioe.org> <1402661063_1@vo.lu>

Show all headers | View raw


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
> 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

GetTimeZoneDiff() documentation missing "Jamal" <someone@example.com> - 2014-06-12 18:39 -0400
  Re: GetTimeZoneDiff() documentation missing Camille Kater <katercam@pt.lu> - 2014-06-13 13:49 +0200
    Re: GetTimeZoneDiff() documentation missing "Jamal" <someone@example.com> - 2014-06-13 12:34 -0400
      Re: GetTimeZoneDiff() documentation missing Camille Kater <katercam@pt.lu> - 2014-06-14 09:57 +0200
      Re: GetTimeZoneDiff() documentation missing "Karl-Heinz" <invalid@invalid.invalid> - 2014-06-15 18:27 +0200
        Re: GetTimeZoneDiff() documentation missing "Jamal" <someone@example.com> - 2014-06-15 21:31 -0400
          Re: GetTimeZoneDiff() documentation missing "Karl-Heinz" <invalid@invalid.invalid> - 2014-06-16 14:45 +0200
            Re: GetTimeZoneDiff() documentation missing "Jamal" <someone@example.com> - 2014-06-16 18:49 +0300
              Re: GetTimeZoneDiff() documentation missing "Karl-Heinz" <invalid@invalid.invalid> - 2014-06-17 08:49 +0200
        Re: GetTimeZoneDiff() documentation missing Camille Kater <katercam@pt.lu> - 2014-06-16 17:26 +0200
          Re: GetTimeZoneDiff() documentation missing "Jamal" <someone@example.com> - 2014-06-16 14:08 -0400
            Re: GetTimeZoneDiff() documentation missing Camille Kater <katercam@pt.lu> - 2014-06-17 09:30 +0200
              Re: GetTimeZoneDiff() documentation missing "Jamal" <someone@example.com> - 2014-06-17 10:37 -0400
                Re: GetTimeZoneDiff() documentation missing Camille Kater <katercam@pt.lu> - 2014-06-18 09:34 +0200
          Re: GetTimeZoneDiff() documentation missing "Karl-Heinz" <invalid@invalid.invalid> - 2014-06-17 08:47 +0200

csiph-web