ZBasic System Library
Function returning Byte
The day number to convert to year, month, day.
This routine computes the day of the week corresponding to a day number. If the day number is omitted,
the value of Register.RTCDay is used.. A return value of 1 corresponds to Sunday and a value of 7
corresponds to Saturday with the remaining days falling in order in between. There are built-in constants
that represent the day numbers as shown in the table below.
Day of Week Constants
Note that Register.RTCDay is initialized to zero on power-up or reset. This day number corresponds to
Friday, January 1, 1999.
This function is not available if the RTC is not enabled in your application.