system/I18n/Time.php
public function setHour($value)
	{
		if ($value < 0 || $value > 23)
		{
			throw I18nException::forInvalidHour($value);
		}

		return $this->setValue('hour', $value);
	}
public function setHour($value)
	{
		if ($value < 0 || $value > 23)
		{
			throw I18nException::forInvalidHour($value);
		}

		return $this->setValue('hour', $value);
	}
Sets the hour of the day (24 hour cycle)

@param $value

@return \CodeIgniter\I18n\Time
@throws \Exception