pandas.Timestamp.to_datetime64 — pandas 3.0.0rc0+52.gb43b95d2b4 documentation (original) (raw)
Timestamp.to_datetime64()#
Return a NumPy datetime64 object with same precision.
This method returns a numpy.datetime64 object with the same date and time information and precision as the pd.Timestamp object.
Examples
ts = pd.Timestamp(year=2023, month=1, day=1, ... hour=10, second=15) ts Timestamp('2023-01-01 10:00:15') ts.to_datetime64() numpy.datetime64('2023-01-01T10:00:15.000000')