public function DateTimeFormatterStrategy::__construct in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Zend\Hydrator\StrategyCode
public function __construct($format = DateTime::RFC3339, DateTimeZone $timezone = null) {
$this->format = (string) $format;
$this->timezone = $timezone;
}