Module: CPKIFTime
Definition in file Time.cpp.
#include "PKIFException.h"
#include "PKIFCommonErrors.h"
#include "ASN1Errors.h"
#include "PKIFTime.h"
#include "Duration.h"
#include "ASN1Helper.h"
#include "PKIX1Implicit88.h"
#include "PKIX1Explicit88.h"
#include "boost/numeric/conversion/cast.hpp"
#include "boost/date_time/posix_time/posix_time.hpp"
#include <iostream>
#include <sstream>
#include <bitset>
#include <iomanip>
Go to the source code of this file.
Functions | |
int | getInt (CPKIFStringPtr &str, int size) |
void | fromUtcTime (const char *time_, CPKIFTime &time) |
void | fromGenTime (const char *time_, CPKIFTime &time) |
Variables | |
_CACDayOfMonthLimitType | _CACDayOfMonthLimit [] |
void fromGenTime | ( | const char * | time_, | |
CPKIFTime & | time | |||
) |
Interface: External
This is a helper function that converts Generalized time into CPKIFTime
CPKIFException(ASN1_INVALID_TIME) |
time_ | [in]Buffer containing UCT time |
time | [out]A reference to CPKIFTime object |
Definition at line 125 of file Time.cpp.
References ASN1_INVALID_TIME, getInt(), CPKIFTime::month(), CPKIFTime::set(), TOOLKIT_ASN, and CPKIFTime::year().
Referenced by CPKIFTime::CPKIFTime().
void fromUtcTime | ( | const char * | time_, | |
CPKIFTime & | time | |||
) |
Interface: Subsystem
This is a helper function that converts UTC time into CPKIFTime
CPKIFException(ASN1_INVALID_TIME) |
time_ | [in]Buffer containing UCT time |
time | [out]A reference to CPKIFTime object |
Definition at line 90 of file Time.cpp.
References ASN1_INVALID_TIME, getInt(), CPKIFTime::month(), CPKIFTime::set(), TOOLKIT_ASN, and CPKIFTime::year().
Referenced by CPKIFTime::CPKIFTime().
int getInt | ( | CPKIFStringPtr & | str, | |
int | size | |||
) |
Interface: Subsystem
This is a helper function that converts a string into in integer
str | [in]A reference to a smart pointer to CPKIFString object that will be converted into an int |
size | [out]Size of the string |
Definition at line 70 of file Time.cpp.
Referenced by fromGenTime(), and fromUtcTime().