psutil.boot_time() ... doesn't ?

R.Wieser address at not.available
Fri Nov 8 11:13:03 EST 2019


Dennis,

> However -- manually changing date/time is not going to illustrate this.
> ANY change made to date/time will reflect a change in UTC time.

It turns out that the get_uptime() does /not/ calculate the boottime from 
the current clock minus the uptime.  Its a seconds-since-epoch (absolute!) 
value written into the /proc/stat file , *which gets fricking changed when 
you change the date/time*.

In other words, all our "must be local time related" musings are not worth 
the paper they where written on. :-)

Regards,
Rudy Wieser




More information about the Python-list mailing list