public function FeedsDateTimeElement::__toString in Feeds 6
Same name and namespace in other branches
- 7 plugins/FeedsParser.inc \FeedsDateTimeElement::__toString()
Implementation of toString magic php method.
Overrides FeedsElement::__toString
File
- plugins/
FeedsParser.inc, line 335
Class
- FeedsDateTimeElement
- Defines a date element of a parsed result (including ranges, repeat).
Code
public function __toString() {
$val = $this
->getValue();
if ($val) {
return $val
->format('U');
}
return '';
}