mk90.basic.functions

Function SECOND

Read the RTC second component.

Syntax

SECOND

Returns

0–59 on a correctly configured RTC.

Behavior

Reads the selected RTC component with bounded update checks and converts its configured BCD/binary representation. HOUR also converts 12-hour mode to 24-hour form.

Separate expressions are separate samples: HOUR, MINUTE and SECOND in one PRINT are not a guaranteed atomic timestamp across a rollover.

Example

10 PRINT SECOND
20 END

Limits and diagnostics

No parentheses or write form. RTC failure returns an OS I/O error.

Status-code reference.

See also

Expressions and precedence · Runtime