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
Method Attributes | Method Name and Description |
---|---|
<static> |
KJUR.asn1.DERGeneralizedTime.setByDate(dateObject)
set value by a Date object
|
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')
- hex - specify initial ASN.1 value(V) by a hexadecimal string
- date - specify Date object.
- millis - specify flag to show milliseconds (from 1.0.6)
- Parameters:
- {Array} params
- associative array of parameters (ex. {'str': '20130430235959Z'})
Field Detail
{Boolean}
withMillis
flag to show milliseconds or not
Method Detail
<static>
KJUR.asn1.DERGeneralizedTime.setByDate(dateObject)
set value by a Date object
When you specify UTC time, use 'Date.UTC' method like this:
var o = new DERUTCTime(); var date = new Date(Date.UTC(2015, 0, 31, 23, 59, 59, 0)); #2015JAN31 23:59:59 o.setByDate(date);
- Parameters:
- {Date} dateObject
- Date object to set ASN.1 value(V)