RevPi Clock

Rund um die Software von Revolution Pi
Post Reply
SimonMonney
Posts: 1
Joined: 03 Feb 2023, 13:37
Answers: 0

RevPi Clock

Post 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
        kjkoster
        Posts: 87
        Joined: 12 Feb 2022, 10:42
        Answers: 2

        Re: RevPi Clock

        Post 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
        Post Reply