LucaMs Expert Licensed User Longtime User Apr 18, 2017 #1 If I'm not wrong, Dateutils.PeriodBetween truncates the result (i tried only with seconds). if the difference is 1.999 ms (ticks) it returns 1 sec. A PeriodBetween2 or with an additional rounding parameter.
If I'm not wrong, Dateutils.PeriodBetween truncates the result (i tried only with seconds). if the difference is 1.999 ms (ticks) it returns 1 sec. A PeriodBetween2 or with an additional rounding parameter.
Erel B4X founder Staff member Licensed User Longtime User Apr 18, 2017 #3 DateUtils code is available here: [B4X] DateUtils - Simplifies Date and Time Calcuations It should be simple to round the value.
DateUtils code is available here: [B4X] DateUtils - Simplifies Date and Time Calcuations It should be simple to round the value.
LucaMs Expert Licensed User Longtime User Apr 18, 2017 #4 Subject to prior approval Attachments DateUtils 1_06 lib.zip 5.8 KB · Views: 243 DateUtils 1_06 src.zip 2.3 KB · Views: 243