# pandas.Timestamp.to_pydatetime

Timestamp.to_pydatetime()

  Convert a Timestamp object to a native Python datetime object.

  If warn=True, issue a warning if nanoseconds is nonzero.

  Examples

      >>> ts = pd.Timestamp('2020-03-14T15:32:52.192548')
      >>> ts.to_pydatetime()
      datetime.datetime(2020, 3, 14, 15, 32, 52, 192548)

  Analogous for `pd.NaT`:

      >>> pd.NaT.to_pydatetime()
      NaT