Class KJUR.asn1.DERUTCTime
Extends
KJUR.asn1.DERAbstractTime.
class for ASN.1 DER UTCTime
Defined in: asn1-1.0.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
KJUR.asn1.DERUTCTime(params)
class for ASN.1 DER UTCTime
As for argument 'params' for constructor, you can specify one of following properties:
|
- 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.DERUTCTime(params)
class for ASN.1 DER UTCTime
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.'130430235959Z')
- date - specify Date object.
- millis - specify flag to show milliseconds (from 1.0.6)
EXAMPLES
new DERUTCTime("20151231235959Z")
new DERUTCTime("20151231235959.123Z")
new DERUTCTime(new Date())
new DERUTCTime(new Date(Date.UTC(2015,11,31,23,59,59,123)))
new DERUTCTime({str: "20151231235959.123Z"})
new DERUTCTime({date: new Date()})
new DERUTCTime({date: new Date(), millis: true})
new DERUTCTime({millis: true})
- Parameters:
- {Array} params
- associative array of parameters (ex. {'str': '130430235959Z'})