pandas / 1.4.0 / reference / api / pandas.period.second.html /

pandas.Period.second

Period. second

Get the second component of the Period.

Returns
int

The second of the Period (ranges from 0 to 59).

See also

Period.hour

Get the hour component of the Period.

Period.minute

Get the minute component of the Period.

Examples

>>> p = pd.Period("2018-03-11 13:03:12.050000")
>>> p.second
12

© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.4.0/reference/api/pandas.Period.second.html