Пример #1
0
 /**
  * Constructor
  *
  * @param \DateTimeImmutable $dt
  */
 public function __construct(\DateTimeImmutable $dt)
 {
     $this->_typeTag = self::TYPE_UTC_TIME;
     parent::__construct($dt);
 }
Пример #2
0
Файл: Time.php Проект: sop/x509
 /**
  * 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;
 }