You are here

public function Time::getHour in Time Field For Drupal 8.x / 9.x 8

Same name and namespace in other branches
  1. 2.x src/Time.php \Drupal\time_field\Time::getHour()

Number of hours.

Return value

int Number of hours

File

src/Time.php, line 84

Class

Time
Time class represents time of day.

Namespace

Drupal\time_field

Code

public function getHour() {
  return $this->hour;
}