#NEWLINE# def uptime( self , args ) : #NEWLINE# #INDENT# response = self . _status ( ) #NEWLINE# now = datetime . fromtimestamp ( ( int ( response [ 'time' ] ) / 1000.0 ) ) #NEWLINE# d = ( datetime ( 1 , 1 , 1 ) + timedelta ( seconds = ( int ( d [ 'uptime' ] ) / 1000.0 ) ) ) #NEWLINE# print ( '{0} up {1} days {2:02d}:{3:02d}' . format ( now . strftime ( '%H:%M' ) , ( d . day - 1 ) , d . hour , d . minute ) )