Page 1 of 1

RevPi Clock

Posted: 08 Mar 2023, 15:56
by SimonMonney
Hi everyone,

I'm developing a C# executable running on the RevPi. One feature of this logiciel is to read every second a value from an analog input and store the value and the datetime.
    Do you know how the RevPi update his time to match with the current time ?
      Do you know after how many time the RevPi loses his time ?
        Do you know if it is possible to set the RevPi clock to the current time ?

        Thank you in advance for your help.

        Simon

        Re: RevPi Clock

        Posted: 08 Mar 2023, 17:15
        by kjkoster
        Dear Simon,

        I think that the Revolution Pi syncs its time automatically. I have installed quite a few Revolution Pi's and never had any one of them drift from real time.

        The older ones do not use UTC as the system timezone, but that is easily fixed by running:

        Code: Select all

        sudo timedatectl set-timezone UTC
        You can check your own system as shown below:

        Code: Select all

        $ timedatectl status
                       Local time: Wed 2023-03-08 16:14:39 UTC
                   Universal time: Wed 2023-03-08 16:14:39 UTC
                         RTC time: Wed 2023-03-08 16:14:40
                        Time zone: Etc/UTC (UTC, +0000)
        System clock synchronized: yes
                      NTP service: active
                  RTC in local TZ: no
        
        Hope this helps.

        Kees Jan