DateTime.hour Property¶ Module: DateTime Type: int Definition¶ The hour (0 through 23, -1 if invalid time).