(self)
Returns current time of the content.
Returns current time of the content.
Returns current time of the content .
def current_time(self):
        """ Returns current time of the content. """

        # If time is progressing we have to calculate the current time based on
        # time the status was retrieved and the then current time.
        if self.time_progress:
            timediff = dt.datetime.now() - self.last_updated

            return min(self._current_time + timediff.seconds, self.duration)

        else:
            return self._current_time
def current_time ( self ) : # If time is progressing we have to calculate the current time based on # time the status was retrieved and the then current time. if self . time_progress : timediff = dt . datetime . now ( ) - self . last_updated return min ( self . _current_time + timediff . seconds , self . duration ) else : return self . _current_time