PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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 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 the Android applications.
Java This function is now available for the Java applications.
PHP This function is now available for the PHP sites.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
PHP This function is now available for the PHP sites.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230std.so
Android wd230android.jar
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment