Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #system #boot #time #python
ADD COMMENT
Topic
Name
4+4 =