|
|
|
|
- Format of result
- Validity of the times
TimeDifference (Function) In french: HeureDifférence Calculates the difference between two times in hundredths of a second.
// Displays the time elapsed since 12:15 Diff is int Time_Sign is string MyResult is string Diff = TimeDifference("1215", TimeSys()) MyResult = IntegerToTime(Abs(Diff)) IF Diff < 0 THEN Time_Sign = "-" Info("Time elapsed: " + Time_Sign + Left(MyResult, 2) + " hours " + ... Middle(MyResult, 3, 2) + " minutes " + ... Middle(MyResult, 5, 2) + " seconds " + ... Middle(MyResult, 7, 2) + " hundredths of a second")
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|