ID EN
Datetime

hour

Python 3.11

In range(24).

Syntax

PYTHON
datetime.hour