|
|
|
|
- HHMMSSCC format
- Time validity
IntegerToTime (Function) In french: EntierVersHeure Converts an integer into a time in HHMMSSCC format. IntegerToTime(0) Â // Returns "00000000" Â // Wait 4 seconds Start, t are int Start = TimeToInteger(TimeSys()) LOOP t = TimeToInteger(TimeSys()) - Start // Display the time elapsed between 0 and 4s Trace(IntegerToTime(t)) // Exit if the 4 seconds have elapsed IF t > 400 THEN BREAK END
Syntax
<Result> = IntegerToTime(<Value>)
<Result>: Character string or Time variable Character string in HHMMSSCC format where HH represents hours, MM minutes, SS seconds and CC hundredths of a second. <Value>: Integer Number of hundredths of a second elapsed since midnight (00:00:00:00). The integer 0 corresponds to midnight. <Value> cannot exceed 8,639,999 (24 hours - 1 hundredth of a second). Remarks To get the time in a format other than HHMMSSCC, you must format the string using TimeToString, Right, Left, etc. The HHMMSSCC format was chosen because it allows you to compare two times with hundredths-of-a-second accuracy. The time validity passed as parameter is checked. A message is displayed if the time is invalid. You can check the validity of a time using TimeValid. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|