Asn1DateTimeDecodeAnyDateTime Method

Gets an ASN.1 date/time instance from current position in ASN.1 reader.

Definition

Namespace: SysadminsLV.Asn1Parser.Universal
Assembly: SysadminsLV.Asn1Parser (in SysadminsLV.Asn1Parser.dll) Version: 1.2.11
C#
public static Asn1DateTime DecodeAnyDateTime(
	Asn1Reader reader
)

Parameters

reader  Asn1Reader
ASN.1 reader that points to either, UTC time or generalized time.

Return Value

Asn1DateTime
An instance of Asn1UtcTime or Asn1GeneralizedTime.

Exceptions

Asn1InvalidTagException ASN.1 reader points to non-date/time field.

See Also