You are here

public function Feed::getUpdateBase in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Syndication/Feed.php \Zend\Feed\Reader\Extension\Syndication\Feed::getUpdateBase()

Get update base

Return value

DateTime|null

File

vendor/zendframework/zend-feed/src/Reader/Extension/Syndication/Feed.php, line 108

Class

Feed

Namespace

Zend\Feed\Reader\Extension\Syndication

Code

public function getUpdateBase() {
  $updateBase = $this
    ->getData('updateBase');
  $date = null;
  if ($updateBase) {
    $date = DateTime::createFromFormat(DateTime::W3C, $updateBase);
  }
  return $date;
}