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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to