229 of 318
ZBasic System Library 219 ZX Microcontroller Family PutTimeStamp Type Subroutine Invocation PutTimeStamp(year, month, day, hour, minute, seconds) Parameter Method Type Description year ByVal int16 The year value (1999-2177). month ByVal Byte The month value (1-12). day ByVal Byte The day value (1-31). hour ByVal Byte The hour value (0-23). minute ByVal Byte The minutes value (0-59). seconds ByVal Single The seconds value. Discussion This routine combines the given date values into the corresponding Register.RTCDay value and combines the given time values into the corresponding RTC tick count and stores the result in Register.RTCTick. The effect is the same as if PutDate() and PutTime() had been called with their respective parameters. Note that Register.RTCDay and Register.RTCTick are initialized to zero on power-up or reset.