

def _post_setattr_maximum(self, old, new):
    ' Post setattr the maximum datetime.\n\n        If the new maximum is less than the current value or the\n        minimum, those values are adjusted down.\n\n        '
    if (new < self.minimum):
        self.minimum = new
    if (new < self.datetime):
        self.datetime = new

dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/widgets/bounded_datetime.py BoundedDatetime._post_setattr_maximum/original