'Constructs an :class:`Arrow <arrow.arrow.Arrow>` object from a ``datetime`` and optional
``tzinfo`` object.
:param dt: the ``datetime``
:param tzinfo: (optional) a ``tzinfo`` object.  Defaults to UTC.'

@classmethod
def fromdatetime(cls, dt, tzinfo=None):

    tzinfo = (tzinfo or dt.tzinfo or dateutil_tz.tzutc())
    return cls(dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, dt.microsecond, tzinfo)
