ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Date and time functions
  • HHMMSSCC format
  • Time validity
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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, 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.

Time validity

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
Component: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help