public function FeedsDateTimeElement::__construct in Feeds 8.2
Constructor.
Parameters
$start: A FeedsDateTime object or a date as accepted by FeedsDateTime.
$end: A FeedsDateTime object or a date as accepted by FeedsDateTime.
$tz: A PHP DateTimeZone object.
Overrides FeedsElement::__construct
File
- lib/
Drupal/ feeds/ FeedsDateTimeElement.php, line 25
Class
- FeedsDateTimeElement
- Defines a date element of a parsed result (including ranges, repeat).
Namespace
Drupal\feedsCode
public function __construct($start = NULL, $end = NULL, $tz = NULL) {
$this->start = !isset($start) || $start instanceof FeedsDateTime ? $start : new FeedsDateTime($start, $tz);
$this->end = !isset($end) || $end instanceof FeedsDateTime ? $end : new FeedsDateTime($end, $tz);
}