TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: R.WIESER
date: 2019-11-03 21:10:00
subject: Re: Python - set current

Dennis,

> but said time should rarely need to be set

... unless you have a small computer which does not have its own RTC, but
just depends on an always-available connection to "thar intawebz" - which it
isn't.

> Thing is -- it is the OS that is multi-user, even if you consider it
> a single-user machine. There may things running that rely upon
> the clock never going backwards

Than I hope that the Pi's internal clock never runs fast. Otherwise the
first re-syncing with an ntp server would cause a problem.
Ofcourse, making the clock jump forward as a result of that re-syncing might
not be good for something-or-another either. :-p

> If it's GPIO pins you crave -- take a look at a Beaglebone Black

Does an atmel mega32 (and family) also count ?

> Well, as hinted above, that float is just seconds from 1970.

Yup, the famous "epoch".    But I would really like to see your calculation
to convert the year, month, day, hour, minute and second values into such a
float.   You know the joke about "and than you have two problems" ?   That
also seems to be true for home-made date/time functions.

Regards,
Rudy Wieser

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.