VALID_TIME

Use the VALID_TIME script function to verify if a defined time is valid.

Syntax

VALID_TIME ([Time Format;]Time)

Parameters

  • VALID_TIME
    Checks whether a time is valid
  • Time
  • Time in HHMMSS format

    Format: script literal or script variable

    (Optional) You can specify a different time format: enter the desired time format, a separator (: or ;) and the time.

Return codes

  • Y
    The time is valid
  • N
    The time is not valid

Examples

The example checks if the specified time is valid. The result (N) is output in the activation report.

:SET &RET#=VALID_TIME("HH:MM:SS;24:00:00")
:
PRINT &RET#

The second example gives a positive result (Y).

:SET &RET#=VALID_TIME("HH:MM:SS;00:00:00")
:
PRINT &RET#

See also: