pandas.Timestamp.nanosecond#
- Timestamp.nanosecond#
Return the nanosecond of the Timestamp.
This property returns an integer representing the nanosecond component (0-999) of the Timestamp. This is particularly useful when working with high-precision temporal data that requires sub-microsecond resolution.
- Returns:
- int
The nanosecond of the Timestamp.
See also
Timestamp.secondReturn the second of the Timestamp.
Timestamp.microsecondReturn the microsecond of the Timestamp.
Examples
>>> ts = pd.Timestamp("2024-08-31 16:16:30.230400015") >>> ts.nanosecond 15