@classmethod
def from_datetime(cls, dt):
    """
        Constructs a :class:`mw.Timestamp` from a :class:`datetime.datetime`.

        :Parameters:
            dt : :class:`datetime.datetime``
                A datetime.

        :Returns:
            :class:`mw.Timestamp`
        """
    time_struct = dt.timetuple()
    return cls.from_time_struct(time_struct)
