You are here

public function DateTimeFormatterStrategy::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-hydrator/src/Strategy/DateTimeFormatterStrategy.php \Zend\Hydrator\Strategy\DateTimeFormatterStrategy::__construct()

Constructor

Parameters

string $format:

DateTimeZone|null $timezone:

File

vendor/zendframework/zend-hydrator/src/Strategy/DateTimeFormatterStrategy.php, line 33

Class

DateTimeFormatterStrategy

Namespace

Zend\Hydrator\Strategy

Code

public function __construct($format = DateTime::RFC3339, DateTimeZone $timezone = null) {
  $this->format = (string) $format;
  $this->timezone = $timezone;
}