You are here

public function FeedsDateTimeElement::getValue in Feeds 7.2

Same name and namespace in other branches
  1. 6 plugins/FeedsParser.inc \FeedsDateTimeElement::getValue()
  2. 7 plugins/FeedsParser.inc \FeedsDateTimeElement::getValue()

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

plugins/FeedsParser.inc, line 567
Contains FeedsParser and related classes.

Class

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

Code

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