You are here

public function InvalidIntervalException::getDateTime in Interval Field 8

Get the date that caused the exception.

Return value

\DateTime The date time that caused the exception.

File

src/InvalidIntervalException.php, line 50

Class

InvalidIntervalException
Defines an exception for handling invalid intervals.

Namespace

Drupal\interval

Code

public function getDateTime() {
  return $this->date;
}