PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • HHMMSSCC format
  • Time validity
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Converts an integer into a time in HHMMSSCC format.
Example
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

HHMMSSCC format

To get the time in a format other than HHMMSSCC, the string must be formatted using TimeToString, Right, Left, etc.
The HHMMSSCC format was chosen because it allows you to compare two times with hundredths-of-a-second accuracy.

Time validity

The time validity passed as parameter is checked. A message is displayed if the time is invalid. The validity of the time can be checked with TimeValid.
Business / UI classification : Neutral code
Component : wd260std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment