NickM
7 years agoOccasional Contributor
Using Delphi Script - gDifference := aqDateTime.TimeInterval(gTimeStart, gTimeEnd); aqConvert.TimeIn
Using Delphi Script:
gDifference := aqDateTime.TimeInterval(gTimeStart, gTimeEnd);
aqConvert.TimeIntervalToStr(gDifference)
When the start and end time runs past midnight the result appears to be the 24 hours minus the difference e.g.
Starting at - 180413_155526 - approx 15:55 previous day
Ending at - 180414_011324 - approx 01:11 next day
Elapsed duration for script in Days:Hours:Minutes:Seconds format: 0:14:42:02
But actual elapsed time more like 10 hours.
Excellent using the NOW parameter fixed the issue - please see example as below:
Starting at - 180424_170500
Ending at - 180425_050207
Elapsed duration for script in Days:Hours:Minutes:Seconds format: 0:11:57:07