TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: DENNIS LEE BIEBER
from: RICHARD KETTLEWELL
date: 2019-11-04 08:45:00
subject: Re: Python - set current

Dennis Lee Bieber  writes:
> 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

There is a separate monotonic clock which doesn’t jump discontinuously
(forwards or backwards). The wall-clock time may have much worse
behavior.

See ‘man clock_getttime’ for the available clocks under Linux.

> (note that going to/from daylight savings time is NOT moving the clock
> itself -- the clock runs UTC and computes the shift based upon
> environment settings). Not to mention that the clock is actually
> counting seconds since some date in 1970.

It counts non-leap secods since 1970.

--
https://www.greenend.org.uk/rjk/

--- 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™.