/** * Constructor * * @param \DateTimeImmutable $dt */ public function __construct(\DateTimeImmutable $dt) { $this->_typeTag = self::TYPE_UTC_TIME; parent::__construct($dt); }
/** * Initialize from ASN.1. * * @param TimeType $el * @return self */ public static function fromASN1(TimeType $el) { $obj = new self($el->dateTime()); $obj->_type = $el->tag(); return $obj; }