Hitachi

JP1 Version 11 JP1/Script Description and Reference (For Windows Systems)


8.4.9 Second (return the second for a specified time)

Purpose

Returns a one- or two-digit numeric in the range 0 to 59, representing the second of the specified time.

Syntax
Second ([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. Instead, the Second command replaces the specified time with the equivalent valid time and returns the result.

For example, if 19:00:65 (a nonexistent time) were specified, the Second command would replace the specified time with the valid time 19:01:05 and would return 5.

This value is optional. If you omit this value, the current time is assumed.

Description

The Second command returns a one- or two-digit numeric in the range 0 to 59, representing the second of the specified time.

JP1/Script version

Supported from JP1/Script 01-00.