Class KJUR.asn1.DERGeneralizedTime
Extends
KJUR.asn1.DERAbstractTime.
class for ASN.1 DER GeneralizedTime
Defined in: asn1-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
KJUR.asn1.DERGeneralizedTime(params)
class for ASN.1 DER GeneralizedTime
As for argument 'params' for constructor, you can specify one of following properties:
|
Field Attributes | Field Name and Description |
---|---|
flag to show milliseconds or not
|
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified, params
- Methods borrowed from class KJUR.asn1.DERAbstractTime:
- getString, setByDate, setByDateValue, setByParam, setString
- Methods borrowed from class KJUR.asn1.ASN1Object:
- getEncodedHex, getLengthHexFromValue, getValueHex, tohex
Class Detail
KJUR.asn1.DERGeneralizedTime(params)
class for ASN.1 DER GeneralizedTime
As for argument 'params' for constructor, you can specify one of following properties:
As for argument 'params' for constructor, you can specify one of following properties:
- str - specify initial ASN.1 value(V) by a string (ex.'20130430235959Z')
- date - specify Date object.
- millis - specify flag to show milliseconds (from 1.0.6)
EXAMPLES
new DERGeneralizedTime("20151231235959Z") new DERGeneralizedTime("20151231235959.123Z") new DERGeneralizedTime(new Date()) new DERGeneralizedTime(new Date(Date.UTC(2015,11,31,23,59,59,123))) new DERGeneralizedTime({str: "20151231235959.123Z"}) new DERGeneralizedTime({date: new Date()}) new DERGeneralizedTime({date: new Date(), millis: true}) new DERGeneralizedTime({millis: true})
- Parameters:
- {Array} params
- associative array of parameters (ex. {'str': '20130430235959Z'})
Field Detail
{Boolean}
withMillis
flag to show milliseconds or not