Real-time clock (RTC)
I would like to retrieve the day of the week from the phone in numerical form (1,2,3,4,5,6,7) or (Monday,Tuesday Wednesday,Thursday,Friday,Saturday,Sunday). Is there a command for this?
Kind regards, Bernard
To retrieve only the day of the week, you can use the RTCF parameter as such:
"|RTC UID:rtc0 HID:rtc RTCF:dddd\r\n"
You can also use abbreviation:
or numerical form with leading zero:
For more information about formatting, see the manual, Appendix C (Supported date and time formats).
Note: The formatting does not support spaces, so you need to use e.g., underscore or hyphen or similar to build your own timestamp.