|
|
|
|
|
- Format of result
- Validity of the times
TimeDifference (Function) In french: HeureDifférence Calculates the difference between two times in hundredths of a second.
Diff is int
Signe_temps is string
MonRésultat is string
Diff = TimeDifference("1215", TimeSys())
MonRésultat = IntegerToTime(Abs(Diff))
IF Diff < 0 THEN Signe_temps = "-"
Info("Temps écoulé : " + Signe_temps + Left(MonRésultat, 2) + " heures " + ...
Middle(MonRésultat, 3, 2) + " minutes " + ...
Middle(MonRésultat, 5, 2) + " secondes " + ...
Middle(MonRésultat, 7, 2) + " centièmes de seconde")
Syntax
<Result> = TimeDifference(<Start time> , <End time>)
<Result>: Integer Number of hundredths of a second elapsed between the two times. This number is the result of the following operation: <End time> - <Start time>. The result is negative if <Start time> is after <End time>. <Start time>: Character string or Time variable Start time in the following format: <End time>: Character string or Time variable End time in the following format: Remarks Format of result To get the duration in another format (HHMMSSCC for example), use IntegerToTime. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|