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.second

Return the second of the Timestamp.

Timestamp.microsecond

Return the microsecond of the Timestamp.

Examples

>>> ts = pd.Timestamp("2024-08-31 16:16:30.230400015")
>>> ts.nanosecond
15