@classmethod
    def from_datetime(cls, dt):
        time_struct = dt.timetuple()
        return cls.from_time_struct(time_struct)
Constructs a :class:`mw.Timestamp` from a :class:`datetime.datetime`.
dataset/ETHPy150Open mediawiki-utilities/python-mediawiki-utilities/mw/types/timestamp.py/Timestamp.from_datetime