Page 161 of 346 Start Back Next End ZBasic System Library 149 ZBasic Microcontrollers 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 1/F_RTC_TICK (typically 1.95ms for ZX devices). Note that Register.RTCTick is initialized to zero on power-up or reset. This corresponds to 0:00:00. Compatibility This subroutine is not available if the RTC is not enabled in your application. Also, explicitly specifying the tick count to use (fourth parameter) is not supported in BasicX compatibility mode. See Also GetDate, GetTimestamp, GetTimeValue