A DerGeneralizedTime extends DerNode to represent a date and time, with millisecond accuracy.
More...
#include <der-node.hpp>
|
| DerNode (DerNodeType nodeType) |
| Create a generic DER node with the given nodeType. More...
|
|
void | encodeHeader (size_t size) |
| Encode the given size and update the header. More...
|
|
size_t | decodeHeader (const uint8_t *inputBuf, size_t startIdx) |
| Extract the header from an input buffer and return the size. More...
|
|
virtual void | decode (const uint8_t *inputBuf, size_t startIdx) |
| Decode and store the data from an input buffer. More...
|
|
void | payloadAppend (const uint8_t *value, size_t valueLength) |
| Call payload_.copy to copy value into payload_ at payloadPosition_. More...
|
|
DerStructure * | parent_ |
|
DerNodeType | nodeType_ |
|
std::vector< uint8_t > | header_ |
|
DynamicUInt8Vector | payload_ |
|
size_t | payloadPosition_ |
|
A DerGeneralizedTime extends DerNode to represent a date and time, with millisecond accuracy.
Create a DerGeneralizedTime with the given milliseconds since 1970.
- Parameters
-
msSince1970 | The timestamp as milliseconds since Jan 1, 1970. |
Convert from the ISO string representation to the internal time format.
- Parameters
-
isoString | The ISO time formatted string. |
- Returns
- The time in milliseconds since 1/1/1970.
Convert to the ISO string representation of the time.
- Parameters
-
time | Milliseconds since 1/1/1970. |
- Returns
- The ISO string.
Interpret the result of toVal() as a time string and return the milliseconds since 1970.
- Returns
- The timestamp value as milliseconds since 1970.
The documentation for this class was generated from the following files: