woom.util.WoomDate.hour

Contents

woom.util.WoomDate.hour#

WoomDate.hour#

Return the hour of the Timestamp.

Returns:

The hour of the Timestamp.

Return type:

int

See also

Timestamp.minute

Return the minute of the Timestamp.

Timestamp.second

Return the second of the Timestamp.

Examples

>>> ts = pd.Timestamp("2024-08-31 16:16:30")
>>> ts.hour
16