Example #1
0
File: UTCTime.php Project: sop/asn1
 /**
  * Constructor
  *
  * @param \DateTimeImmutable $dt
  */
 public function __construct(\DateTimeImmutable $dt)
 {
     $this->_typeTag = self::TYPE_UTC_TIME;
     parent::__construct($dt);
 }
Example #2
0
File: Time.php Project: 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;
 }