114 of 307
ZBasic System Library 104 ZX Microcontroller Family GetDate Type Subroutine Invocation GetDate(year, month, day) GetDate(year, month, day, dayNum) 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). dayNum ByVal integral The day number to convert to year, month, day. Discussion This routine decomposes a day number into the corresponding year, month and day components. The month value of 1 corresponds to January while 12 corresponds to December. If the day number is omitted, the value of Register.RTCDay is used. Note that Register.RTCDay is initialized to zero on power-up or reset. This day number corresponds to January 1, 1999. Compatibility The second form of this subroutine is not available in BasicX compatibility mode. See Also GetDayNumber, GetDayOfWeek, GetDayOfYear, PutDate