(self)
return delta.total_seconds()
Returns the number of seconds between the current time
        and the set renew time. It can be negative if the
        leader election is running late.
Returns the number of seconds between the current time
        and the set renew time. It can be negative if the
        leader election is running late.
Returns the number of seconds between the current time and the set renew time . It can be negative if the leader election is running late .
def seconds_until_renew(self):
        """
        Returns the number of seconds between the current time
        and the set renew time. It can be negative if the
        leader election is running late.
        """
        delta = self.renew_time - datetime.now(self.renew_time.tzinfo)
        return delta.total_seconds()
def seconds_until_renew ( self ) : delta = self . renew_time - datetime . now ( self . renew_time . tzinfo ) return delta . total_seconds ( )