protected static function _determineType(\DateTimeImmutable $dt): int
    {
        if ($dt->format("Y") >= 2050) {
            return Element::TYPE_GENERALIZED_TIME;
        }
        return Element::TYPE_UTC_TIME;
    }
protected static function _determineType(\DateTimeImmutable $dt): int
    {
        if ($dt->format("Y") >= 2050) {
            return Element::TYPE_GENERALIZED_TIME;
        }
        return Element::TYPE_UTC_TIME;
    }
protected static function _determineType ( \ DateTimeImmutable $ dt ) : int { if ( $ dt -> format ( "Y" ) >= 2050 ) { return Element :: TYPE_GENERALIZED_TIME ; } return Element :: TYPE_UTC_TIME ; }
Determine whether to use UTCTime or GeneralizedTime ASN.1 type.

@param \DateTimeImmutable $dt
@return int Type tag
Determine whether to use UTCTime or GeneralizedTime ASN . 1 type .