getuptime
October 31, 2022 ยท View on GitHub
Overview
Returns datetime object representing date/time that device was started.
Not to be confused with get_uptime that returns how long device has been up.
Examples
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
up_time_dattime = duthost.get_up_time()
Arguemnts
Takes no arguments.
Expected Output
Returns datetime object representing the date and time that the device was first 'up'.