8.4.7 Hour (return the hour for a specified time)
- Purpose
-
Returns a one- or two-digit numeric in the range 0 to 23, representing the hour of the specified time.
- Syntax
Hour ([Time])
- Argument
-
- Time
-
Write the time in hh:mm:ss format.
If an invalid value is specified for hh, an error occurs. However, if an invalid value is specified for mm or ss, no error occurs.
For example, if 19:61:00 (a nonexistent time) were specified, the Hour command would replace the specified time with the valid time 20:01:00 and would return 20.
This value is optional. If you omit this value, the current time is assumed.
- Description
-
The Hour command returns a one- or two-digit numeric in the range 0 to 23, representing the hour of the specified time.
- JP1/Script version
-
Supported from JP1/Script 01-00.