Page 162 of 346 Start Back Next End ZBasic System Library 150 ZBasic Microcontrollers GetTimestamp Type Subroutine Invocation GetTimestamp(year, month, day, hour, minute, seconds) Parameter Method Type Description year ByRef int16 The variable in which to place the year value (1999-2177). month ByRef Byte The variable in which to place the month value (1-12). day ByRef Byte The variable in which to place the day value (1-31). 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. Discussion This routine decomposes the value of Register.RTCDay and Register.RTCTick into year, month, day, hour, minute and second components. See GetDate() and GetTime() for more details. Compatibility This subroutine is not available if the RTC is not enabled in your application.