GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Real-time clock (RTC)

    Scheduled Pinned Locked Moved
    General Discussion
    2
    2
    215
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Bernard
      last edited by

      Hello kl3m3n
      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

      K 1 Reply Last reply Reply Quote 0
      • K
        kl3m3n @Bernard
        last edited by kl3m3n

        @Bernard Hi.

        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:

        RTCF:ddd
        

        or numerical form with leading zero:

        RTCF:dd
        

        or without:

        RTCF:d
        

        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.

        Best regards,
        kl3m3n

        1 Reply Last reply Reply Quote 0
        • First post
          Last post