def num2date(x, tz=None):
    '\n    *x* is a float value which gives the number of days\n    (fraction part represents hours, minutes, seconds) since\n    0001-01-01 00:00:00 UTC *plus* *one*.\n    The addition of one here is a historical artifact.  Also, note\n    that the Gregorian calendar is assumed; this is not universal\n    practice.  For details, see the module docstring.\n\n    Return value is a :class:`datetime` instance in timezone *tz* (default to\n    rcparams TZ value).\n\n    If *x* is a sequence, a sequence of :class:`datetime` objects will\n    be returned.\n    '
    if (tz is None):
        tz = _get_rc_timezone()
    if (not cbook.iterable(x)):
        return _from_ordinalf(x, tz)
    else:
        x = np.asarray(x)
        if (not x.size):
            return x
        return _from_ordinalf_np_vectorized(x, tz).tolist()
*x* is a float value which gives the number of days
(fraction part represents hours, minutes, seconds) since
0001-01-01 00:00:00 UTC *plus* *one*.
The addition of one here is a historical artifact.  Also, note
that the Gregorian calendar is assumed; this is not universal
practice.  For details, see the module docstring.

Return value is a :class:`datetime` instance in timezone *tz* (default to
rcparams TZ value).

If *x* is a sequence, a sequence of :class:`datetime` objects will
be returned.
def num2date(x, tz=None):
    '\n    *x* is a float value which gives the number of days\n    (fraction part represents hours, minutes, seconds) since\n    0001-01-01 00:00:00 UTC *plus* *one*.\n    The addition of one here is a historical artifact.  Also, note\n    that the Gregorian calendar is assumed; this is not universal\n    practice.  For details, see the module docstring.\n\n    Return value is a :class:`datetime` instance in timezone *tz* (default to\n    rcparams TZ value).\n\n    If *x* is a sequence, a sequence of :class:`datetime` objects will\n    be returned.\n    '
    if (tz is None):
        tz = _get_rc_timezone()
    if (not cbook.iterable(x)):
        return _from_ordinalf(x, tz)
    else:
        x = np.asarray(x)
        if (not x.size):
            return x
        return _from_ordinalf_np_vectorized(x, tz).tolist()