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

R.Wieser address at not.available
Wed Nov 6 12:15:36 EST 2019


Hello all,

I was doing a "lets print some time-related data", and also diaplayed the
result of "psutil.boot_time()".

Somewhere while doing that I saw that my clock was off, so I used the "date"
command to rectify it.

The thing is, after that the result of "psutil.boot_time()" was changed -
and that I did (and do) not expect. :-(
(Remark: the difference was exactly the same as the change I made with the
"date" command).

Question: Is there a way to retrieve the "last boot" time /without/ it
getting changed by ... whatever ?

Regards,
Rudy Wieser





More information about the Python-list mailing list