136 of 323
ZBasic System Library 126 ZX Microcontroller Family GetTime Type Subroutine Invocation GetTime(hour, minute, seconds) GetTime(hour, minute, seconds, tick) Parameter Method Type Description hour ByRef Byte The variable in which to place the hour value (0-23). minute ByRef Byte The variable in which to place the minutes value (0-59). seconds ByRef Single The variable in which to place the seconds value. tick ByVal integral The tick count to decompose. Discussion This routine decomposes a tick count into the equivalent hour, minute and second components. If the tick count is omitted, the value of Register.RTCTick is used. The resolution of the seconds value is approximately 1.95ms. Note that Register.RTCTick is initialized to zero on power-up or reset. This corresponds to 0:00:00. Compatibility Explicitly specifying the tick count to use is not supported in BasicX compatibility mode.