IS_TIME()
Prototype
IS_TIME(time, [format])
Verifies if a string has time format (hh:mm:ss) and is a valid time (for example 12:65:32 is not valid because 65 is not a valid minute)
Partial times are allowed depending on format
value. See examples below.
The string provided can include a date part, which will be ignored unless it is an invalid date expression.
Input Parameters
Parameters | Type | Default | Required | Description |
---|---|---|---|---|
|
| Yes | Time to verify | |
| "S" | No | Units in which VALUE is expressed. Accepted values are:
If no format is specified, then "S" is the default value |
Return value
Type | Description |
---|---|
|
Execution
Always. Calculated on-the-fly whenever an ITEM of a FORM is changed (by means of form_set_answer(), or when the FORM is opened
Examples
Formula | Description |
---|---|
| No UNIT specified, so "S" is assumed. Result = 1 |
| Invalid time because minute 65 is not possible. Result = 0 |
| Required time with at least minute part. Result = 1 |
| Required date with at least minute part. Result = 1 |
| Time expression includes a valid date part. Result = 1 |
| Time expression includes an invalid date part. Result = 0 |