__construct() публичный Метод

Returns new DateTime object.
public __construct ( string $time = null, string | DateTimeZon\DateTimeZone $timezone = null ) : Date
$time string
$timezone string | DateTimeZon\DateTimeZone
Результат Date
Пример #1
0
 public function __construct($time = null, $tz = null)
 {
     $a = parent::__construct($time, $tz);
     $this->eDateTime = new \EasyDateTime($this->tzName, 'jalali');
     return $a;
 }