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
Checks the validity of a time.
Example
TimeValid("23122222")  // Returns True
TimeValid("2312")      // Returns True
TimeValid("23")        // Returns True
TimeValid("24")        // Returns False
TimeValid("23137099")  // Returns False
Syntax
<Result> = TimeValid(<Time>)
<Result>: Boolean
  • True if the time is valid or if the <Time> parameter corresponds to an empty string (""),
  • False if the time is not valid. A time is considerd as being invalid if:
    • The "HH" part of the time is not included between "00" and "23".
    • The "MM" part of the time is not included between "00" and "59".
    • The "SS" part of the time is not included between "00" and "59".
    • The "CC" part of the time is not item included between "00" and "99".
<Time>: Character string, Date or DateTime variable
Time to use. This time can correspond to:
  • a character string in HHMMSSCC format (HH corresponds to hours, MM to minutes, SS to seconds and CC to hundredths of a second).
  • Versions 24 and later
    a character string in YYYYMMDDHHMMSSCC format (YYYY corresponds to year, MM to month, DD to day, HH to hour, MM to minutes, SS to seconds and CC to hundredths of a second. In this case, only the time is taken into account.
    New in version 24
    a character string in YYYYMMDDHHMMSSCC format (YYYY corresponds to year, MM to month, DD to day, HH to hour, MM to minutes, SS to seconds and CC to hundredths of a second. In this case, only the time is taken into account.
    a character string in YYYYMMDDHHMMSSCC format (YYYY corresponds to year, MM to month, DD to day, HH to hour, MM to minutes, SS to seconds and CC to hundredths of a second. In this case, only the time is taken into account.
  • a Time variable.
  • Versions 24 and later
    a DateTime variable. In this case, only the time is taken into account.
    New in version 24
    a DateTime variable. In this case, only the time is taken into account.
    a DateTime variable. In this case, only the time is taken into account.
Remarks
Tip: To enter a time in the correct format, use a Time edit control. In this case, the validity of the time is automatically checked.
Component : wd250std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment