PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Transforms a time in character string format into a time in HHMMSSCC format, that can be used by a Time variable.
Versions 22 and later
PHP This function is now available for the PHP sites.
New in version 22
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
Example
MyTime is Time
MyTime = StringToTime("12:10:25:78")  // MyTime = "12102578"
Syntax
<Result> = StringToTime(<String> [, <Format>])
<Result>: Character string or Time variable
  • Time in HHMMSSCC format (HH corresponds to the hours, MM to the minutes, SS to the seconds and CC to the hundredths of a second).
  • Empty string ("") if a problem occurred.
<String>: Character string
Time in the format specified in <Format>.
<Format>: Optional character string
Format of the string that must be converted into time. You can use:
  • The specific characters representing the different elements of the time (HH, MM, SS, CC or AP) will be automatically replaced by their value identified in <String>.
    In this string, the characters:
    • HH represent the number of hours,
    • MM represent the number of minutes,
    • SS represent the number of seconds,
    • CC represent the number of hundredths of a second,
    • AP represent "AM" or "PM" (if "AM" is found in the format, the time is displayed over 12 hours).
  • The following constant:
    maskSystemTimeAllows you to directly use the mask used by the system time. This mask depends on the configuration options of project.
    To display the configuration options of the times for the project:
    1. On the "Project" pane, in the "Project" group, click "Description". The description window of the project is displayed.
    2. In the "Languages" tab, select the "Time" tab. You have the ability to use the Windows options or specific parameters.
If this parameter is not specified, the HH:MM:SS:CC format is used by default.
Component : wd250std.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment