You are here

public function FeedsDateTimeElement::getValue in Feeds 8.2

Override FeedsElement::getValue().

Return value

The UNIX timestamp of this object's start date. Return value is technically a string but will only contain numeric values.

Overrides FeedsElement::getValue

File

lib/Drupal/feeds/FeedsDateTimeElement.php, line 37

Class

FeedsDateTimeElement
Defines a date element of a parsed result (including ranges, repeat).

Namespace

Drupal\feeds

Code

public function getValue() {
  if ($this->start) {
    return $this->start
      ->format('U');
  }
  return '0';
}