PcapPlusPlus
Next
|
#include <Asn1Codec.h>
Public Member Functions | |
Asn1GeneralizedTimeRecord (const std::chrono::system_clock::time_point &value, const std::string &timezone="Z") | |
![]() | |
std::chrono::system_clock::time_point | getValue (const std::string &timezone="Z") |
std::string | getValueAsString (const std::string &format="%Y-%m-%d %H:%M:%S", const std::string &timezone="Z", bool includeMilliseconds=false) |
![]() | |
std::vector< uint8_t > | encode () |
Asn1TagClass | getTagClass () const |
bool | isConstructed () const |
Asn1UniversalTagType | getUniversalTagType () const |
uint8_t | getTagType () const |
size_t | getValueLength () const |
size_t | getTotalLength () const |
std::string | toString () |
template<class Asn1RecordType > | |
Asn1RecordType * | castAs () |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< Asn1Record > | decode (const uint8_t *data, size_t dataLen, bool lazy=true) |
Represents an ASN.1 record with a value of type GeneralizedTime
|
explicit |
A constructor to create a record of type generalized time
[in] | value | A time-point to set as the record value |
[in] | timezone | The time-point's timezone - should be in the format of "Z" for UTC or +=HHMM for other timezones. If not provided it's assumed the timezone is UTC |
std::invalid_argument | if timezone is not in the correct format |