Answers for "windows boot time python"

1

get the system boot time in python

psutil. boot_time() returns the system boot time expressed in seconds since the epoch. It is the number of seconds that have elapsed since the Unix epoch, minus leap seconds; the Unix epoch is 00:00:00 UTC on 1 January 1970. To convert this time to DateTime we use fromtimestamp(), which returns the local date and time
Posted by: Guest on October-29-2020

Python Answers by Framework

Browse Popular Code Answers by Language