Skip to content
asn1jsasn1jsasn1jsv4.1.0

GeneralizedTime

new GeneralizedTime(parameters?): GeneralizedTime

UTCTimeParams = {}

GeneralizedTime

UTCTime.constructor

blockLength: number

UTCTime.blockLength


day: number

UTCTime.day


error: string

UTCTime.error


hour: number

UTCTime.hour


idBlock: LocalIdentificationBlock

UTCTime.idBlock


lenBlock: LocalLengthBlock

UTCTime.lenBlock


millisecond: number


minute: number

UTCTime.minute


month: number

UTCTime.month


name: string

UTCTime.name


optional: boolean

UTCTime.optional


optional primitiveSchema?: BaseBlock<ValueBlock, LocalBaseBlockJson>

UTCTime.primitiveSchema


second: number

UTCTime.second


valueBeforeDecodeView: Uint8Array

3.0.0

UTCTime.valueBeforeDecodeView


valueBlock: LocalSimpleStringValueBlock

UTCTime.valueBlock


warnings: string[]

UTCTime.warnings


year: number

UTCTime.year


static NAME: string = "GeneralizedTime"

UTCTime.NAME

get valueBeforeDecode(): ArrayBuffer

ArrayBuffer

set valueBeforeDecode(value): void

ArrayBuffer

void

UTCTime.valueBeforeDecode

fromBER(inputBuffer, inputOffset, inputLength, context?): number

ArrayBuffer | Uint8Array<ArrayBufferLike>

number

number

FromBerContext

number

UTCTime.fromBER


fromBuffer(inputBuffer): void

Function converting ArrayBuffer into ASN.1 internal string

ArrayBuffer | Uint8Array<ArrayBufferLike>

ASN.1 BER encoded array

void

UTCTime.fromBuffer


fromDate(inputDate): void

Function converting “Date” object into ASN.1 internal string

Date

JavaScript “Date” object

void

UTCTime.fromDate


fromString(inputString): void

string

void

UTCTime.fromString


getValue(): string

String value

string

3.0.0

UTCTime.getValue


isEqual(other): other is GeneralizedTime

Determines whether two object instances are equal

unknown

Object to compare with the current object

other is GeneralizedTime

UTCTime.isEqual


setValue(value): void

String value

string

String value

void

3.0.0

UTCTime.setValue


toBER(sizeOnly?, writer?): ArrayBuffer

Encoding of current ASN.1 block into ASN.1 encoded array (BER rules)

boolean

Flag that we need only a size of encoding, not a real array of bytes

ViewWriter

ArrayBuffer

ASN.1 BER encoded array

UTCTime.toBER


toBuffer(): ArrayBuffer

Function converting ASN.1 internal string into ArrayBuffer

ArrayBuffer

UTCTime.toBuffer


toDate(): Date

Converts a class object into the JavaScrip Date Object

Date

Date object

UTCTime.toDate


toJSON(): GeneralizedTimeJson

Returns a JSON representation of an object

GeneralizedTimeJson

JSON object

UTCTime.toJSON


toString(encoding?): string

Returns a string representation of an object.

DateStringEncoding = "iso"

string

UTCTime.toString


static blockName(): string

Aux function, need to get a block name. Need to have it here for inheritance

string

Returns name of the block

UTCTime.blockName