'Multiplication of `TimeDelta` objects by numbers/arrays.'

def __mul__(self, other):

    if isinstance(other, Time):
        raise OperandTypeError(self, other, u'*')
    try:
        other = other.to(1)
    except Exception:
        pass
    try:
        (jd1, jd2) = day_frac(self.jd1, self.jd2, factor=other)
        out = TimeDelta(jd1, jd2, format=u'jd', scale=self.scale)
    except Exception as err:
        try:
            return (self.to(u.day) * other)
        except Exception:
            raise err
    if (self.format != u'jd'):
        out = out.replicate(format=self.format)
    return out
