Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

21 May, 2024: Computers section is temporarily disabled for maintenance. It will take several days before it's back.


computers / comp.sys.raspberry-pi / How does Pi get its time?

SubjectAuthor
* How does Pi get its time?Chris Green
+* Re: How does Pi get its time?Knute Johnson
|+- Re: How does Pi get its time?Knute Johnson
|`* Re: How does Pi get its time?NY
| +- Re: How does Pi get its time?A. Dumas
| +- Re: How does Pi get its time?David Taylor
| `- Re: How does Pi get its time?Kees Nuyt
+* Re: How does Pi get its time?Jim Jackson
|`- Re: How does Pi get its time?A. Dumas
+- Re: How does Pi get its time?Ahem A Rivet's Shot
+* How does Pi get its time?Tristan Greaves
|`* Re: How does Pi get its time?Chris Green
| +* Re: How does Pi get its time?Ahem A Rivet's Shot
| |+* Re: How does Pi get its time?Charlie Gibbs
| ||+- Re: How does Pi get its time?Folderol
| ||`* Re: How does Pi get its time?Jim Jackson
| || +* Re: How does Pi get its time?The Natural Philosopher
| || |`- Re: How does Pi get its time?Ahem A Rivet's Shot
| || `* Re: How does Pi get its time?Lew Pitcher
| ||  +- Re: How does Pi get its time?Lew Pitcher
| ||  `- Re: How does Pi get its time?The Natural Philosopher
| |`* Re: How does Pi get its time?NotReal
| | `* Re: How does Pi get its time?Ahem A Rivet's Shot
| |  `* Re: How does Pi get its time?NotReal
| |   +* Re: How does Pi get its time?Ahem A Rivet's Shot
| |   |`- Re: How does Pi get its time?NotReal
| |   +- Re: How does Pi get its time?The Natural Philosopher
| |   `* Re: How does Pi get its time?Björn Lundin
| |    `- Re: How does Pi get its time?NotReal
| +- Re: How does Pi get its time?The Natural Philosopher
| `* Re: How does Pi get its time?Brian Gregory
|  `* Re: How does Pi get its time?Adam Funk
|   `* Re: How does Pi get its time?Brian Gregory
|    `- Re: How does Pi get its time?Adam Funk
+* How does Pi get its time?Vincent Coen
|`* Re: How does Pi get its time?Chris Green
| `- Re: How does Pi get its time?meff
+- Re: How does Pi get its time?Jan Panteltje
`* Re: How does Pi get its time?David Taylor
 `* Re: How does Pi get its time?A. Dumas
  +- Re: How does Pi get its time?Adam Funk
  `* Re: How does Pi get its time?David Taylor
   `- Re: How does Pi get its time?druck

Pages:12
How does Pi get its time?

<bebgdi-6i793.ln1@esprimo.zbmc.eu>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4112&group=comp.sys.raspberry-pi#4112

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl@isbd.net (Chris Green)
Newsgroups: comp.sys.raspberry-pi
Subject: How does Pi get its time?
Date: Thu, 10 Feb 2022 21:07:55 +0000
Lines: 8
Message-ID: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net x4PBVoRQtjpy0tmZMKQLcw+qamtcTl7ga/GgoTINi2EZqu0eE=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:Q0MWVcG9fsai3yOk+9AddJC5B8A=
User-Agent: tin/2.4.6-20210226 ("Glen Albyn") (Linux/5.13.0-27-generic (x86_64))
 by: Chris Green - Thu, 10 Feb 2022 21:07 UTC

How do Raspberry Pis know what the time is?

On my Pis NTP isn't installed but they seem to know what the time is
OK so how do they do it?

--
Chris Green
·

Re: How does Pi get its time?

<su409i$st3$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4113&group=comp.sys.raspberry-pi#4113

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: knute2020@585ranch.com (Knute Johnson)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Thu, 10 Feb 2022 15:32:34 -0600
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <su409i$st3$1@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 10 Feb 2022 21:32:34 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f770260337db8e9d79096be45c580d36";
logging-data="29603"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ai2/wJsQ9uHXgAs+Pc2fn"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:aGhqCy/pY5wyf/+aV/W97A3IIiM=
In-Reply-To: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
Content-Language: en-US
 by: Knute Johnson - Thu, 10 Feb 2022 21:32 UTC

On 2/10/22 15:07, Chris Green wrote:
> How do Raspberry Pis know what the time is?
>
> On my Pis NTP isn't installed but they seem to know what the time is
> OK so how do they do it?
>

systemd.timesync.d

Re: How does Pi get its time?

<su40ci$st3$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4114&group=comp.sys.raspberry-pi#4114

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: knute2022@585ranch.com (Knute Johnson)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Thu, 10 Feb 2022 15:34:10 -0600
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <su40ci$st3$2@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu> <su409i$st3$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 10 Feb 2022 21:34:10 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f770260337db8e9d79096be45c580d36";
logging-data="29603"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/V+b+Hop4/WmuUuomWRZxv"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:AzMhrce5koy8WE9JnErNjy4JCzQ=
In-Reply-To: <su409i$st3$1@dont-email.me>
Content-Language: en-US
 by: Knute Johnson - Thu, 10 Feb 2022 21:34 UTC

On 2/10/22 15:32, Knute Johnson wrote:
> On 2/10/22 15:07, Chris Green wrote:
>> How do Raspberry Pis know what the time is?
>>
>> On my Pis NTP isn't installed but they seem to know what the time is
>> OK so how do they do it?
>>
>
> systemd.timesync.d
>

too many .

systemd.timesyncd

Re: How does Pi get its time?

<slrnt0b17j.626.jj@iridium.wf32df>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4115&group=comp.sys.raspberry-pi#4115

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jj@franjam.org.uk (Jim Jackson)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Thu, 10 Feb 2022 21:34:43 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <slrnt0b17j.626.jj@iridium.wf32df>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
Injection-Date: Thu, 10 Feb 2022 21:34:43 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d0614439c7c027d565f1102e6040ff1b";
logging-data="29868"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Tbtq3NEFstZ25y33MDLQ7dtsz2ey7K7A="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:4NnYFMABb3cantuwft1rqnHf8ws=
 by: Jim Jackson - Thu, 10 Feb 2022 21:34 UTC

On 2022-02-10, Chris Green <cl@isbd.net> wrote:
> How do Raspberry Pis know what the time is?
>
> On my Pis NTP isn't installed but they seem to know what the time is
> OK so how do they do it?
>

Depends what OS you've got. I'm assuming it is Raspberry Pi OS.

As far as I know systemd provides an NTP client - systemd-timesyncd

Try the command

systemctl status systemd-timesyncd

might need a sudo in front.

Re: How does Pi get its time?

<su41cp$7o6$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4116&group=comp.sys.raspberry-pi#4116

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: me@privacy.invalid (NY)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Thu, 10 Feb 2022 21:51:22 -0000
Organization: A noiseless patient Spider
Lines: 1
Message-ID: <su41cp$7o6$1@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu> <su409i$st3$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="UTF-8";
reply-type=response
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 10 Feb 2022 21:51:21 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="640f4691844e28a4d6bf65bbdc72c7f2";
logging-data="7942"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Oi0ux36v2vixS1CRfp+JMH+rOXA2IuIg="
Cancel-Lock: sha1:o2y8T7VZ07i7KCaGPKuEWk1SPM0=
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
In-Reply-To: <su409i$st3$1@dont-email.me>
X-Antivirus-Status: Clean
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
Importance: Normal
X-Antivirus: Avast (VPS 220210-0, 10/2/2022), Outbound message
X-Priority: 3
X-MSMail-Priority: Normal
 by: NY - Thu, 10 Feb 2022 21:51 UTC

"Knute Johnson" <knute2020@585ranch.com> wrote in message
news:su409i$st3$1@dont-email.me...
> On 2/10/22 15:07, Chris Green wrote:
>> How do Raspberry Pis know what the time is?
>>
>> On my Pis NTP isn't installed but they seem to know what the time is
>> OK so how do they do it?
>>
>
> systemd.timesync.d

Beware of running time-sensitive software on a Pi that reboots and doesn't
immediately have an internet connection.

I use a Pi to run Cumulus weather station software. This logs and graphs
data from a weather station. If there has been a power cut, everything
*starts* to boot at the same time when the power comes back. If the Pi boots
first, and the router takes its time connecting, the Pi will run with a
silly time until it is able to synchronise with an internet time source.
This leads to graphs which suddenly shoot back by several hours (when the Pi
reboots) and then shoot forward again (once the Pi has managed to
synchronise). My impression is that the Pi checks frequently for a time
source to begin with, which is why I rarely see the problem, but then starts
polling less frequently, which is why on the rare occasions that I've seen
the problem, the update to the correct time happens a fair time after the
router has connected and I've been able to browse the web on other
computers. The Pi seems to have a crude real-time clock which gets the time
approximately right (maybe wrong by a couple of hours), rather than
reverting to "the beginning of time" (1 Jan 1970).

It's not the end of the world, and not worth the hassle of implementing a
proper battery-backed RTC (as on a Windows/Linux PC). The software logs
readings every 10 minutes (though it graphs them every minute) so there
aren't usually many readings that have an incorrect timestamp, and it's
obvious which times are missing because they *should* be at 00, 10, 20, 30,
40, 50 minutes past every hour. It's just a case of hand-editing the log
file and then restarting the software manually so it regenerates the graphs
with the correct time axis.

I imagine that a Pi that is run without an internet connection (eg an
unattended device with no Ethernet/wifi connection) will free-run - unless
it has a GPS connection (eg to record a track of where it is going) in which
case it can be configured to use the time from the GPS to sync the system
clock. I imagine there are RTC modules that communicate through the GPIO
socket, for devices that have no internet connection.

Re: How does Pi get its time?

<20220210213827.f790667eb4d2cc6b05f5b4f6@eircom.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4117&group=comp.sys.raspberry-pi#4117

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: steveo@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Thu, 10 Feb 2022 21:38:27 +0000
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <20220210213827.f790667eb4d2cc6b05f5b4f6@eircom.net>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="1708b004a07c5ee663623c6f3e474d94";
logging-data="11270"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DkPH4sRxjzwXY4OiciXyiM2ed1nXh6tQ="
Cancel-Lock: sha1:WbDDGlu5ocaNZRlVJd5k3QxnKks=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0)
X-Clacks-Overhead: "GNU Terry Pratchett"
 by: Ahem A Rivet's - Thu, 10 Feb 2022 21:38 UTC

On Thu, 10 Feb 2022 21:07:55 +0000
Chris Green <cl@isbd.net> wrote:

> How do Raspberry Pis know what the time is?
>
> On my Pis NTP isn't installed but they seem to know what the time is
> OK so how do they do it?

Does it run ntpdate at boot ?

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/

How does Pi get its time?

<644528814@f1.n770.z30.fidonet.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4118&group=comp.sys.raspberry-pi#4118

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Tristan.Greaves@f1.n770.z30.fidonet.org (Tristan Greaves)
Newsgroups: comp.sys.raspberry-pi
Subject: How does Pi get its time?
Date: Thu, 10 Feb 2022 21:33:04 +1200
Organization: Agency HUB, Dunedin - New Zealand | bbs.nz/#Fidonet
Message-ID: <644528814@f1.n770.z30.fidonet.org>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="20318"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: Chris Green
 by: Tristan Greaves - Thu, 10 Feb 2022 09:33 UTC

Re: How does Pi get its time?
By: Chris Green to All on Thu Feb 10 2022 09:07 pm

CG> How do Raspberry Pis know what the time is?

CG> On my Pis NTP isn't installed but they seem to know what the time is
CG> OK so how do they do it?

If you are running Raspbian, it could well be timesyncd.

Tristan.

How does Pi get its time?

<1644528630@f1.n250.z2.fidonet.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4119&group=comp.sys.raspberry-pi#4119

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Vincent.Coen@f1.n250.z2.fidonet.org (Vincent Coen)
Newsgroups: comp.sys.raspberry-pi
Subject: How does Pi get its time?
Date: Thu, 10 Feb 2022 21:30:11 +1200
Organization: Agency HUB, Dunedin - New Zealand | bbs.nz/#Fidonet
Message-ID: <1644528630@f1.n250.z2.fidonet.org>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="20318"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-Comment-To: Chris Green
X-MailConverter: SoupGate-Win32 v1.05
 by: Vincent Coen - Thu, 10 Feb 2022 09:30 UTC

Hello Chris!

Thursday February 10 2022 21:07, you wrote to All:

> How do Raspberry Pis know what the time is?

> On my Pis NTP isn't installed but they seem to know what the time is
> OK so how do they do it?

Are you SURE that it is not installed ?

Vincent

Re: How does Pi get its time?

<olggdi-pai93.ln1@esprimo.zbmc.eu>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4120&group=comp.sys.raspberry-pi#4120

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader02.eternal-september.org!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl@isbd.net (Chris Green)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Thu, 10 Feb 2022 22:37:12 +0000
Lines: 29
Message-ID: <olggdi-pai93.ln1@esprimo.zbmc.eu>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu> <1644528630@f1.n250.z2.fidonet.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net skvSTdeck3sNHpqSeOavwwJjVlV3yMhMQnpeDbJlQOz4C91UI=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:n9KZezL7JUvr0lxjVu4+jqHMVXQ=
User-Agent: tin/2.4.6-20210226 ("Glen Albyn") (Linux/5.13.0-27-generic (x86_64))
 by: Chris Green - Thu, 10 Feb 2022 22:37 UTC

Vincent Coen <nospam.Vincent.Coen@f1.n250.z2.fidonet.org> wrote:
> Hello Chris!
>
> Thursday February 10 2022 21:07, you wrote to All:
>
> > How do Raspberry Pis know what the time is?
>
> > On my Pis NTP isn't installed but they seem to know what the time is
> > OK so how do they do it?
>
> Are you SURE that it is not installed ?
>
Well I can't see anything that looks like it:-

chris@backup$ ps -ef | grep -i ntp
chris 7885 7820 0 22:36 pts/0 00:00:00 grep --color=auto -i ntp
chris@backup$ man -k ntp
grantpt (3) - grant access to the slave pseudoterminal
intptr_t (3) - overview of system data types
mountpoint (1) - see if a directory or file is a mountpoint
ntp_adjtime (3) - tune kernel clock
ntp_gettime (3) - get time parameters (NTP daemon interface)
ntp_gettimex (3) - get time parameters (NTP daemon interface)
uintptr_t (3) - overview of system data types

--
Chris Green
·

Re: How does Pi get its time?

<onggdi-pai93.ln1@esprimo.zbmc.eu>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4121&group=comp.sys.raspberry-pi#4121

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl@isbd.net (Chris Green)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Thu, 10 Feb 2022 22:38:16 +0000
Lines: 17
Message-ID: <onggdi-pai93.ln1@esprimo.zbmc.eu>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu> <644528814@f1.n770.z30.fidonet.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net Jx/tTmMfF8AAYKgvhYRIYg64o6sKg698IYRNLtXtQ4ZG+UDVs=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:xo3Ja/kUqNjtuanzew/LCavGZuU=
User-Agent: tin/2.4.6-20210226 ("Glen Albyn") (Linux/5.13.0-27-generic (x86_64))
 by: Chris Green - Thu, 10 Feb 2022 22:38 UTC

Tristan Greaves <nospam.Tristan.Greaves@f1.n770.z30.fidonet.org> wrote:
> Re: How does Pi get its time?
> By: Chris Green to All on Thu Feb 10 2022 09:07 pm
>
> CG> How do Raspberry Pis know what the time is?
>
> CG> On my Pis NTP isn't installed but they seem to know what the time is
> CG> OK so how do they do it?
>
> If you are running Raspbian, it could well be timesyncd.
>
Ah, thank you. Why did they have to change the name from the almost
universal ntp I wonder.

--
Chris Green
·

Re: How does Pi get its time?

<su46i2$cpu$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4122&group=comp.sys.raspberry-pi#4122

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: email@example.com (meff)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Thu, 10 Feb 2022 23:19:30 -0000 (UTC)
Organization: That of fools
Lines: 18
Message-ID: <su46i2$cpu$1@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
<1644528630@f1.n250.z2.fidonet.org> <olggdi-pai93.ln1@esprimo.zbmc.eu>
Injection-Date: Thu, 10 Feb 2022 23:19:30 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="bf92e78395d9f6d5c9ac057260d3c65f";
logging-data="13118"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xC36IaFdt/SkI5cx8Hc3w"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:AI8FIxYtrzEXJi48GuvI8EZNSZA=
 by: meff - Thu, 10 Feb 2022 23:19 UTC

On 2022-02-10, Chris Green <cl@isbd.net> wrote:
> Vincent Coen <nospam.Vincent.Coen@f1.n250.z2.fidonet.org> wrote:
> Well I can't see anything that looks like it:-
>
> chris@backup$ ps -ef | grep -i ntp
> chris 7885 7820 0 22:36 pts/0 00:00:00 grep --color=auto -i ntp
> chris@backup$ man -k ntp
> grantpt (3) - grant access to the slave pseudoterminal
> intptr_t (3) - overview of system data types
> mountpoint (1) - see if a directory or file is a mountpoint
> ntp_adjtime (3) - tune kernel clock
> ntp_gettime (3) - get time parameters (NTP daemon interface)
> ntp_gettimex (3) - get time parameters (NTP daemon interface)
> uintptr_t (3) - overview of system data types

You can look at the running systemd units by doing something like
`systemctl list-units` and see if systemd is running the time
syncing. If it's Raspbian, it's probably running through systemd.

Re: How does Pi get its time?

<su495t$r47$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4123&group=comp.sys.raspberry-pi#4123

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: alexandre@dumas.fr.invalid (A. Dumas)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Fri, 11 Feb 2022 01:04:13 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <su495t$r47$1@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu> <su409i$st3$1@dont-email.me>
<su41cp$7o6$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Feb 2022 00:04:13 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="80a35a8ffc0350e44e2fd4cee8988e5c";
logging-data="27783"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/sD/T8XUw3P4j6Ya9C9qEjxFBPBFdBahc="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.6.0
Cancel-Lock: sha1:Vzvz6xBFFMR4mC0HHMFKSmgw2Cs=
In-Reply-To: <su41cp$7o6$1@dont-email.me>
Content-Language: en-GB
 by: A. Dumas - Fri, 11 Feb 2022 00:04 UTC

On 10-02-2022 22:51, NY wrote:
> The Pi seems to have a crude
> real-time clock which gets the time approximately right (maybe wrong by
> a couple of hours), rather than reverting to "the beginning of time" (1
> Jan 1970).

It has no hardware clock; in a controlled shutdown or reboot it saves
the last known time to disk and reads that when it starts up again,
starts counting from there. So it will be behind by how ever long it was
down; maybe 15-20 seconds for a reboot? The same happens in the case of
sudden power failure, but I'm not sure how often it saves the current
datetime value during normal operation, so that may be why in that case
it is behind by more.

Re: How does Pi get its time?

<su49gv$suv$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4124&group=comp.sys.raspberry-pi#4124

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: alexandre@dumas.fr.invalid (A. Dumas)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Fri, 11 Feb 2022 01:10:07 +0100
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <su49gv$suv$1@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
<slrnt0b17j.626.jj@iridium.wf32df>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Feb 2022 00:10:07 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="80a35a8ffc0350e44e2fd4cee8988e5c";
logging-data="29663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ybPgB6Tmnt1A9qtW9MA29FgEeqYpp2Zs="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.6.0
Cancel-Lock: sha1:FXYX73akn5p7XWR7Bthq8EG26ck=
In-Reply-To: <slrnt0b17j.626.jj@iridium.wf32df>
Content-Language: en-GB
 by: A. Dumas - Fri, 11 Feb 2022 00:10 UTC

On 10-02-2022 22:34, Jim Jackson wrote:
> systemctl status systemd-timesyncd
>
> might need a sudo in front.

No sudo needed. Strange output on my Pi: says it has been running since
~2 minutes ago (that's about when I logged in) but this Pi is always on
and 'uptime' says I last rebooted 2 days ago.

Re: How does Pi get its time?

<su517n$bsb$5@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4126&group=comp.sys.raspberry-pi#4126

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: pNaonStpealmtje@yahoo.com (Jan Panteltje)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Fri, 11 Feb 2022 06:54:29 GMT
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <su517n$bsb$5@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 11 Feb 2022 06:54:47 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c14c56a3b42fd3fcbaa2eae8d734f0d5";
logging-data="12171"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CT2rExDRUklQ/IExe/TeEWJIfhuu7T0E="
User-Agent: NewsFleX-1.5.7.5 (Linux-2.6.37.6)
Cancel-Lock: sha1:IGFuwgTo8ap/+x4S/vZhl2MrVWg=
X-Newsreader-location: NewsFleX-1.5.7.5 (c) 'LIGHTSPEED' off line news reader for the Linux platform
NewsFleX homepage: http://www.panteltje.com/panteltje/newsflex/ and ftp download ftp://sunsite.unc.edu/pub/linux/system/news/readers/
 by: Jan Panteltje - Fri, 11 Feb 2022 06:54 UTC

On a sunny day (Thu, 10 Feb 2022 21:07:55 +0000) it happened Chris Green
<cl@isbd.net> wrote in <bebgdi-6i793.ln1@esprimo.zbmc.eu>:

>How do Raspberry Pis know what the time is?
>
>On my Pis NTP isn't installed but they seem to know what the time is
>OK so how do they do it?

On one of my raspberries I have a GPS module connected to /dev/ttyAMA0
it gets location and time even if there is no net connection.

Re: How does Pi get its time?

<su57ro$ek6$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4127&group=comp.sys.raspberry-pi#4127

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david-taylor@blueyonder.co.uk.invalid (David Taylor)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Fri, 11 Feb 2022 08:47:52 +0000
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <su57ro$ek6$1@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
Reply-To: david-taylor@blueyonder.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Feb 2022 08:47:52 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c2de8d2e2c14f2951658789e456d324e";
logging-data="14982"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tVa1wJwgkhPjMJ/FiTNARcZjkVI29k4I="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.0
Cancel-Lock: sha1:P/CULcIWdXhWwxphrgSk8AjdwGo=
In-Reply-To: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
Content-Language: en-GB
 by: David Taylor - Fri, 11 Feb 2022 08:47 UTC

On 10/02/2022 21:07, Chris Green wrote:
> How do Raspberry Pis know what the time is?
>
> On my Pis NTP isn't installed but they seem to know what the time is
> OK so how do they do it?
>

On my Raspberry Pi cards I always install NTP. As you say, sadly this isn't
the default on recent OS versions, so an extra step is required.

As often with Linux, the approach /appears/ to be "If it works, change it!".

--
Cheers,
David
Web: http://www.satsignal.eu

Re: How does Pi get its time?

<su581e$ek6$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4128&group=comp.sys.raspberry-pi#4128

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david-taylor@blueyonder.co.uk.invalid (David Taylor)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Fri, 11 Feb 2022 08:50:54 +0000
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <su581e$ek6$2@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu> <su409i$st3$1@dont-email.me>
<su41cp$7o6$1@dont-email.me>
Reply-To: david-taylor@blueyonder.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Feb 2022 08:50:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c2de8d2e2c14f2951658789e456d324e";
logging-data="14982"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+P6lyGQEMOQdxuQAo3bdpxc+2MXB2VqvM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.0
Cancel-Lock: sha1:ySpbxY30jjrTCYFDwbpfCGkNC1w=
In-Reply-To: <su41cp$7o6$1@dont-email.me>
Content-Language: en-GB
 by: David Taylor - Fri, 11 Feb 2022 08:50 UTC

On 10/02/2022 21:51, NY wrote:
> "Knute Johnson" <knute2020@585ranch.com> wrote in message
> news:su409i$st3$1@dont-email.me...
>> On 2/10/22 15:07, Chris Green wrote:
>>> How do Raspberry Pis know what the time is?
>>>
>>> On my Pis NTP isn't installed but they seem to know what the time is
>>> OK so how do they do it?
>>>
>>
>> systemd.timesync.d
>
> Beware of running time-sensitive software on a Pi that reboots and doesn't
> immediately have an internet connection.
>
> I use a Pi to run Cumulus weather station software. This logs and graphs
> data from a weather station. If there has been a power cut, everything
> *starts* to boot at the same time when the power comes back. If the Pi boots
> first, and the router takes its time connecting, the Pi will run with a
> silly time until it is able to synchronise with an internet time source.
> This leads to graphs which suddenly shoot back by several hours (when the Pi
> reboots) and then shoot forward again (once the Pi has managed to
> synchronise). My impression is that the Pi checks frequently for a time
> source to begin with, which is why I rarely see the problem, but then starts
> polling less frequently, which is why on the rare occasions that I've seen
> the problem, the update to the correct time happens a fair time after the
> router has connected and I've been able to browse the web on other
> computers. The Pi seems to have a crude real-time clock which gets the time
> approximately right (maybe wrong by a couple of hours), rather than
> reverting to "the beginning of time" (1 Jan 1970).
>
>
> It's not the end of the world, and not worth the hassle of implementing a
> proper battery-backed RTC (as on a Windows/Linux PC). The software logs
> readings every 10 minutes (though it graphs them every minute) so there
> aren't usually many readings that have an incorrect timestamp, and it's
> obvious which times are missing because they *should* be at 00, 10, 20, 30,
> 40, 50 minutes past every hour. It's just a case of hand-editing the log
> file and then restarting the software manually so it regenerates the graphs
> with the correct time axis.
>
>
> I imagine that a Pi that is run without an internet connection (eg an
> unattended device with no Ethernet/wifi connection) will free-run - unless
> it has a GPS connection (eg to record a track of where it is going) in which
> case it can be configured to use the time from the GPS to sync the system
> clock. I imagine there are RTC modules that communicate through the GPIO
> socket, for devices that have no internet connection.
>

You can get a board with a GPS and RTC here:


https://store.uputronics.com/index.php?route=product/product&path=64&product_id=81

At least, when they become available again....

--
Cheers,
David
Web: http://www.satsignal.eu

Re: How does Pi get its time?

<su5deq$j3j$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4129&group=comp.sys.raspberry-pi#4129

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: alexandre@dumas.fr.invalid (A. Dumas)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Fri, 11 Feb 2022 11:23:22 +0100
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <su5deq$j3j$1@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu> <su57ro$ek6$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 11 Feb 2022 10:23:22 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="80a35a8ffc0350e44e2fd4cee8988e5c";
logging-data="19571"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+RVUMjjR/abnFoWQex2xzYhwejPBR6Bb0="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.6.0
Cancel-Lock: sha1:MWOcgUs0tAfPqAJ1/qTyNlstsJY=
In-Reply-To: <su57ro$ek6$1@dont-email.me>
Content-Language: en-GB
 by: A. Dumas - Fri, 11 Feb 2022 10:23 UTC

On 11-02-2022 09:47, David Taylor wrote:
> On my Raspberry Pi cards I always install NTP.  As you say, sadly this
> isn't the default on recent OS versions, so an extra step is required.

And presumably you also uninstall the alternative systemd-timesyncd? I
*hate* the complexity of systemd vs the old sysvinit, but time sync is
one service that just works in the background, so I don't bother with it
& am not bothered by it. What are the specific advantages of ntp for you?

Re: How does Pi get its time?

<5vqhdi-4u.ln1@news.ducksburg.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4130&group=comp.sys.raspberry-pi#4130

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: a24061@ducksburg.com (Adam Funk)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Fri, 11 Feb 2022 10:39:01 +0000
Organization: $CABAL
Lines: 17
Message-ID: <5vqhdi-4u.ln1@news.ducksburg.com>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu> <su57ro$ek6$1@dont-email.me>
<su5deq$j3j$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 097wv/sz5klc8/gHwuZC6QnlNLRz1vSah/F03BbLAKEpWFHxmx
X-Orig-Path: news.ducksburg.com!not-for-mail
Cancel-Lock: sha1:e2MHMupUscWihdUCIe0P68Tj8No= sha1:p/K7KCI1eSXYrRykuWl8fjBSiA0=
User-Agent: slrn/pre1.0.4-6 (Linux)
 by: Adam Funk - Fri, 11 Feb 2022 10:39 UTC

On 2022-02-11, A. Dumas wrote:

> On 11-02-2022 09:47, David Taylor wrote:
>> On my Raspberry Pi cards I always install NTP.  As you say, sadly this
>> isn't the default on recent OS versions, so an extra step is required.
>
> And presumably you also uninstall the alternative systemd-timesyncd? I
> *hate* the complexity of systemd vs the old sysvinit, but time sync is
> one service that just works in the background, so I don't bother with it
> & am not bothered by it. What are the specific advantages of ntp for you?

IIRC, installing the ntp package automatically removes the
systemd-timesyncd one.

I guess the main advantage of ntp is that people already know how to
configure it (if they want a custom configuration) whereas customizing
anything in systemd seems to involve a lot of learning and guesswork.

Re: How does Pi get its time?

<20220211111005.0af265a169be26f1b712d6b2@eircom.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4131&group=comp.sys.raspberry-pi#4131

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: steveo@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Fri, 11 Feb 2022 11:10:05 +0000
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <20220211111005.0af265a169be26f1b712d6b2@eircom.net>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
<644528814@f1.n770.z30.fidonet.org>
<onggdi-pai93.ln1@esprimo.zbmc.eu>
<2q6b0hdbvhd24vjkghr4epouu4jvrnp9ra@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="aa5295e3b67a8c6a9acfa5210646f8d1";
logging-data="13074"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19OHX8N9FyJUcGK52VCxvZFCSzuYRDbeXM="
Cancel-Lock: sha1:V2yuegxYO3xK6IaZf5mq5MxEpnI=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0)
X-Clacks-Overhead: "GNU Terry Pratchett"
 by: Ahem A Rivet's - Fri, 11 Feb 2022 11:10 UTC

On Thu, 10 Feb 2022 18:11:47 -0500
Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:

> On Thu, 10 Feb 2022 22:38:16 +0000, Chris Green <cl@isbd.net> declaimed
> the following:
>
> >>
> >Ah, thank you. Why did they have to change the name from the almost
> >universal ntp I wonder.
>
> For the same reason the fairly easily understood Sys-V init
> processing is being replaced by the mysterious complicated systemd
> scheme... "It's new! Therefore it must be better!"

Sys V init is far from elegant (name ordered scripts ugh!) and
somewhat overengineered (run levels and all those links ugh!) so I can
understand the desire to replace it - but there was BSD init easily
available which is like Sys V init without the ugh! Then again I am sure
there are some who miss having everything in /etc/rc.

I have a slightly different theory to "It's new! Therefore it must
be better!" - I think it's more about separating Linux the OS family from
Unix the OS family - remember Gnu's NOT Unix.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/

Re: How does Pi get its time?

<su5ite$mp5$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4132&group=comp.sys.raspberry-pi#4132

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david-taylor@blueyonder.co.uk.invalid (David Taylor)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Fri, 11 Feb 2022 11:56:30 +0000
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <su5ite$mp5$1@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu> <su57ro$ek6$1@dont-email.me>
<su5deq$j3j$1@dont-email.me>
Reply-To: david-taylor@blueyonder.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 11 Feb 2022 11:56:30 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c2de8d2e2c14f2951658789e456d324e";
logging-data="23333"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lJr3OsUprJylObJ1bGwvaQ/9j39vL2LA="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.0
Cancel-Lock: sha1:4OsCrDfXJBwVuXOsOBvkgor/ltU=
In-Reply-To: <su5deq$j3j$1@dont-email.me>
Content-Language: en-GB
 by: David Taylor - Fri, 11 Feb 2022 11:56 UTC

On 11/02/2022 10:23, A. Dumas wrote:
> On 11-02-2022 09:47, David Taylor wrote:
>> On my Raspberry Pi cards I always install NTP.  As you say, sadly this
>> isn't the default on recent OS versions, so an extra step is required.
>
> And presumably you also uninstall the alternative systemd-timesyncd? I
> *hate* the complexity of systemd vs the old sysvinit, but time sync is
> one service that just works in the background, so I don't bother with it
> & am not bothered by it. What are the specific advantages of ntp for you?

No, the uninstall has not been an issue. The advantages are many, but briefly:

- able to accept a PPS time source (e.g. GPS)
- accepts multiple servers including "pool"
- acts as a time server for other clients
- simple setup
- easy to monitor (locally and remotely)
- having the same configuration and monitoring on Linux and Windows

--
Cheers,
David
Web: http://www.satsignal.eu

Re: How does Pi get its time?

<su5ngd$nfb$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4133&group=comp.sys.raspberry-pi#4133

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: news@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Fri, 11 Feb 2022 13:14:47 +0000
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <su5ngd$nfb$1@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu> <su57ro$ek6$1@dont-email.me>
<su5deq$j3j$1@dont-email.me> <su5ite$mp5$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Feb 2022 13:14:53 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2228db4e207e7635ee45afa4c02b06e5";
logging-data="24043"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eZar4A61RhpJGaFxzcvZc"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:kLGG8u+dne5qxgLdYr9fnEQ0g+0=
In-Reply-To: <su5ite$mp5$1@dont-email.me>
Content-Language: en-GB
 by: druck - Fri, 11 Feb 2022 13:14 UTC

On 11/02/2022 11:56, David Taylor wrote:
> The advantages [of ntp] are many, but
> briefly:
>
> - able to accept a PPS time source (e.g. GPS)
> - accepts multiple servers including "pool"
> - acts as a time server for other clients
> - simple setup
> - easy to monitor (locally and remotely)
> - having the same configuration and monitoring on Linux and Windows

You forgot:-

- nothing to do with Lennart Poettering

As if you raised a bug report on timesyncd suddenly returning an extra
37 minutes in a day, he would close it with a "wont fix - correct on Mars".

---druck

Re: How does Pi get its time?

<5uvc0h5q7jciasshp56o2cank0sb88nc0v@dim53.demon.nl>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4134&group=comp.sys.raspberry-pi#4134

  copy link   Newsgroups: comp.sys.raspberry-pi
From: k.nuyt@nospam.demon.nl (Kees Nuyt)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Fri, 11 Feb 2022 16:34:38 +0100
Reply-To: k.nuyt@nospam.demon.nl
Message-ID: <5uvc0h5q7jciasshp56o2cank0sb88nc0v@dim53.demon.nl>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu> <su409i$st3$1@dont-email.me> <su41cp$7o6$1@dont-email.me>
User-Agent: ForteAgent/7.10.32.1214
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 31
Injection-Date: Fri, 11 Feb 2022 16:34:38 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1509
 by: Kees Nuyt - Fri, 11 Feb 2022 15:34 UTC

On Thu, 10 Feb 2022 21:51:22 -0000, "NY" <me@privacy.invalid>
wrote:

> Beware of running time-sensitive software on a Pi that reboots and doesn't
> immediately have an internet connection.

Hint:
For services that require the correct clock (after initial
syncing with the internet) add the following to the
/etc/systemd/system/your.service definition of your servicve:

---
[Unit]
Description=your service
After=systemd-time-wait-sync.service
: --more here--
: [Install]
WantedBy=multi-user.target
---

and enable/start:

sudo systemctl enable systemd-time-wait-sync.service
sudo systemctl start systemd-time-wait-sync.service

--
Regards,
Kees Nuyt

Re: How does Pi get its time?

<su6757$9fj$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4135&group=comp.sys.raspberry-pi#4135

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Fri, 11 Feb 2022 17:41:59 +0000
Organization: A little, after lunch
Lines: 21
Message-ID: <su6757$9fj$3@dont-email.me>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
<644528814@f1.n770.z30.fidonet.org> <onggdi-pai93.ln1@esprimo.zbmc.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Feb 2022 17:41:59 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="dbe5d12238c24e93695365bf5f583a31";
logging-data="9715"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cXhyGSYO9Yfq01Qhq9bv8AI9DstsFzDc="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:f8C1oKdk0qf7KnFhT7NMYNMX+RY=
In-Reply-To: <onggdi-pai93.ln1@esprimo.zbmc.eu>
Content-Language: en-GB
 by: The Natural Philosop - Fri, 11 Feb 2022 17:41 UTC

On 10/02/2022 22:38, Chris Green wrote:
> Tristan Greaves <nospam.Tristan.Greaves@f1.n770.z30.fidonet.org> wrote:
>> Re: How does Pi get its time?
>> By: Chris Green to All on Thu Feb 10 2022 09:07 pm
>>
>> CG> How do Raspberry Pis know what the time is?
>>
>> CG> On my Pis NTP isn't installed but they seem to know what the time is
>> CG> OK so how do they do it?
>>
>> If you are running Raspbian, it could well be timesyncd.
>>
> Ah, thank you. Why did they have to change the name from the almost
> universal ntp I wonder.
>
Because Lord High Arsehole Poettering said so. He who Must Be Obeyed...

--
Any fool can believe in principles - and most of them do!

Re: How does Pi get its time?

<fxBNJ.13275$GjY3.3908@fx01.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4136&group=comp.sys.raspberry-pi#4136

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx01.iad.POSTED!not-for-mail
Newsgroups: comp.sys.raspberry-pi
From: cgibbs@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: How does Pi get its time?
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
<644528814@f1.n770.z30.fidonet.org> <onggdi-pai93.ln1@esprimo.zbmc.eu>
<2q6b0hdbvhd24vjkghr4epouu4jvrnp9ra@4ax.com>
<20220211111005.0af265a169be26f1b712d6b2@eircom.net>
User-Agent: slrn/1.0.3 (Linux)
Lines: 35
Message-ID: <fxBNJ.13275$GjY3.3908@fx01.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Fri, 11 Feb 2022 22:35:55 UTC
Date: Fri, 11 Feb 2022 22:35:55 GMT
X-Received-Bytes: 2284
 by: Charlie Gibbs - Fri, 11 Feb 2022 22:35 UTC

On 2022-02-11, Ahem A Rivet's Shot <steveo@eircom.net> wrote:

> On Thu, 10 Feb 2022 18:11:47 -0500
> Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
>
>> On Thu, 10 Feb 2022 22:38:16 +0000, Chris Green <cl@isbd.net>
>> declaimed the following:
>>
>>> Ah, thank you. Why did they have to change the name from the almost
>>> universal ntp I wonder.
>>
>> For the same reason the fairly easily understood Sys-V init
>> processing is being replaced by the mysterious complicated systemd
>> scheme... "It's new! Therefore it must be better!"
>
> Sys V init is far from elegant (name ordered scripts ugh!) and
> somewhat overengineered (run levels and all those links ugh!) so I can
> understand the desire to replace it - but there was BSD init easily
> available which is like Sys V init without the ugh! Then again I am
> sure there are some who miss having everything in /etc/rc.
>
> I have a slightly different theory to "It's new! Therefore it
> must be better!" - I think it's more about separating Linux the OS
> family from Unix the OS family - remember Gnu's NOT Unix.

That reminds me of a sales pep rally that I wasn't allowed to duck
out of. The bigwigs were going on about "product differentiation" -
which I interpreted as: "Make it different, even it it means
screwing it up."

--
/~\ Charlie Gibbs | Microsoft is a dictatorship.
\ / <cgibbs@kltpzyxm.invalid> | Apple is a cult.
X I'm really at ac.dekanfrus | Linux is anarchy.
/ \ if you read it the right way. | Pick your poison.

Re: How does Pi get its time?

<20220212195818.6bf4b1d6@devuan>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4137&group=comp.sys.raspberry-pi#4137

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: general@musically.me.uk (Folderol)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How does Pi get its time?
Date: Sat, 12 Feb 2022 19:58:18 +0000
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <20220212195818.6bf4b1d6@devuan>
References: <bebgdi-6i793.ln1@esprimo.zbmc.eu>
<644528814@f1.n770.z30.fidonet.org>
<onggdi-pai93.ln1@esprimo.zbmc.eu>
<2q6b0hdbvhd24vjkghr4epouu4jvrnp9ra@4ax.com>
<20220211111005.0af265a169be26f1b712d6b2@eircom.net>
<fxBNJ.13275$GjY3.3908@fx01.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="4206dc3e295dfc70262710f8347620eb";
logging-data="20327"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Y1/pyVdnl62cr2b8mdLp06MriX9FD/Bk="
Cancel-Lock: sha1:iUrZhE80Lt6/d6SuFRqZZQ8w7pA=
X-Newsreader: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Folderol - Sat, 12 Feb 2022 19:58 UTC

On Fri, 11 Feb 2022 22:35:55 GMT
Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:

>On 2022-02-11, Ahem A Rivet's Shot <steveo@eircom.net> wrote:
>
>> On Thu, 10 Feb 2022 18:11:47 -0500
>> Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
>>
>>> On Thu, 10 Feb 2022 22:38:16 +0000, Chris Green <cl@isbd.net>
>>> declaimed the following:
>>>
>>>> Ah, thank you. Why did they have to change the name from the almost
>>>> universal ntp I wonder.
>>>
>>> For the same reason the fairly easily understood Sys-V init
>>> processing is being replaced by the mysterious complicated systemd
>>> scheme... "It's new! Therefore it must be better!"
>>
>> Sys V init is far from elegant (name ordered scripts ugh!) and
>> somewhat overengineered (run levels and all those links ugh!) so I can
>> understand the desire to replace it - but there was BSD init easily
>> available which is like Sys V init without the ugh! Then again I am
>> sure there are some who miss having everything in /etc/rc.
>>
>> I have a slightly different theory to "It's new! Therefore it
>> must be better!" - I think it's more about separating Linux the OS
>> family from Unix the OS family - remember Gnu's NOT Unix.
>
>That reminds me of a sales pep rally that I wasn't allowed to duck
>out of. The bigwigs were going on about "product differentiation" -
>which I interpreted as: "Make it different, even it it means
>screwing it up."

Hence disastrously obscure and degraded user interfaces :(

--
Basic


computers / comp.sys.raspberry-pi / How does Pi get its time?

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor