'Returns a copy of the clip, with the ``end`` attribute set to
``t``, which can be expressed in seconds (15.35), in (min, sec),
in (hour, min, sec), or as a string: \'01:03:05.35\'.
Also sets the duration of the mask and audio, if any,
of the returned clip.'

@apply_to_mask
@apply_to_audio
@convert_to_seconds(['t'])
@outplace
def set_end(self, t):

    self.end = t
    if (self.end is None):
        return
    if (self.start is None):
        if (self.duration is not None):
            self.start = max(0, (t - newclip.duration))
    else:
        self.duration = (self.end - self.start)
