[Gambas-bugtracker] Bug #1577: Long return type to DateDiff
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Tue May 14 00:42:18 CEST 2019
http://gambaswiki.org/bugtracker/edit?object=BUG.1577&from=L21haW4-
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"
More information about the Bugtracker
mailing list