def _post_setattr_maximum(self, old, new):
        """ Post setattr the maximum time.

        If the new maximum is less than the current value or the
        minimum, those values are adjusted down.

        """
        if new < self.minimum:
            self.minimum = new
        if new < self.time:
            self.time = new

    #--------------------------------------------------------------------------
    # Post Validate Handlers
    #--------------------------------------------------------------------------
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/widgets/bounded_time.py/BoundedTime._post_setattr_maximum/original