Return a :class:`~datetime.datetime` instance corresponding to the time portion of this :class:`Timestamp`. The returned datetime's timezone is UTC.
(self)
| 115 | return f"Timestamp({self.__time}, {self.__inc})" |
| 116 | |
| 117 | def as_datetime(self) -> datetime.datetime: |
| 118 | """Return a :class:`~datetime.datetime` instance corresponding |
| 119 | to the time portion of this :class:`Timestamp`. |
| 120 | |
| 121 | The returned datetime's timezone is UTC. |
| 122 | """ |
| 123 | return datetime.datetime.fromtimestamp(self.__time, utc) |
no outgoing calls