Skip to content

decodeDerTimeOrThrow ​

decodeDerTimeOrThrow ​

Decodes a UTCTime (tag 0x17) or GeneralizedTime (tag 0x18) element into a Date.

ts
function decodeDerTimeOrThrow(
	element: DerElement,
): Date

Parameters

Throws

  • if element carries any other tag, or a malformed time value.

Released under the MIT License.