public function DateTimePlus::inputIsFormat

Checks if input is a string with an expected format.

Return value

boolean TRUE if the input time is a string with an expected format.

1 call to DateTimePlus::inputIsFormat()
DateTimePlus::__construct in drupal/core/lib/Drupal/Component/Datetime/DateTimePlus.php
Constructs a date object set to a requested date and timezone.

File

drupal/core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 383
Definition of Drupal\Component\Datetime\DateTimePlus

Class

DateTimePlus
Extends DateTime().

Namespace

Drupal\Component\Datetime

Code

public function inputIsFormat() {
  return is_string($this->inputTimeAdjusted) && !empty($this->inputFormatAdjusted);
}