PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
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 a time in character string format to a time in HHMMSSCC format that can be used by a variable
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
PHP This function is now available for PHP sites.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
PHP This function is now available for PHP sites.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
PHP This function is now available for PHP sites.
Versions 26 and later
Apple Watch This function is now available for Apple Watch applications.
New in version 26
Apple Watch This function is now available for Apple Watch applications.
Apple Watch This function is now available for Apple Watch applications.
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 hours, MM to minutes, SS to seconds and CC to hundredths of a second).
  • Empty string ("") if a problem occurs.
<String>: Character string
Time in the format specified in <Format>.
<Format>: Optional character string
Format of the string that must be converted to 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:
    • HH represents the number of hours,
    • MM represents the number of minutes,
    • SS represents the number of seconds,
    • CC represents the number of hundredths of a second,
    • AP represents "AM" or "PM" (if "AP" is used, the time is displayed in 12-hour format).
  • The following constant:
    maskSystemTimeAllows you to directly use the mask used by the system time. This mask depends on the configuration of the project.
    To display the time settings of 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.
Business / UI classification : Neutral code
Component : wd260std.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment