[Gambas-user] Difference DateDiff(...) ?

Hans Lehmann hans at ...3219...
Sun Aug 6 15:21:17 CEST 2017


Hello,
Why are two different results:

Public Sub Main()

   Dim a, b As Long

   a = DateDiff("01/01/1900", "01/01/1935", gb.Second)
   b = DateDiff("01/01/1935", "01/01/1970 ", gb.Second)

   Print a + b
   Print DateDiff("01/01/1900", "01/01/1935", gb.Second) + 
DateDiff("01/01/1935", "01/01/1970 ", gb.Second)

End

Results:

2208988800     ' ok
-2085978496    ' complement?

Best regards

Hans



More information about the User mailing list