Gambas-it
Gambas dal mondo esterno => Mailing List => Topic aperto da: vuott - 13 Maggio 2019, 21:20:58
-
https://lists.gambas-basic.org/pipermail/user/2019-May/067149.html
-
Allego la risposta di Minisini sul Bugtraker alla proposta di cambiare in Long il ritorno di DateDiff():
Comment #1 by BenoƮt MINISINI:
At the moment DateDiff() can only return integers.
As a workaround, you can get the milliseconds between two dates StartDate and EndDate that way:
Dim Diff AS Float = EndDate - StartDate ' Get the difference in days and fraction of days
Dim Count As Long = CLong(Diff * 86400000) ' Convert into milliseconds
Print Count;; "milliseconds"