OpenDNSSEC-enforcer  1.3.14
Functions
datetime.h File Reference
#include <stdlib.h>
#include <time.h>
Include dependency graph for datetime.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int DtNow (struct tm *datetime)
 
int DtNumeric (const char *string, struct tm *datetime)
 
int DtAppendTime (char *fulldt, const char *timepart)
 
int DtGeneral (const char *string, struct tm *datetime)
 
char * DtGeneralString (const char *string)
 
int DtParseDateTime (const char *string, struct tm *datetime)
 
char * DtParseDateTimeString (const char *string)
 
int DtIntervalSeconds (const char *number, int *interval)
 
void DtSecondsInterval (int interval, char *text, size_t textlen)
 
int DtDateDiff (const char *date1, const char *date2, int *diff)
 
int DtXMLIntervalSeconds (const char *number, int *interval)
 

Function Documentation

int DtAppendTime ( char *  fulldt,
const char *  timepart 
)

Definition at line 238 of file datetime.c.

Referenced by DtGeneral().

int DtDateDiff ( const char *  date1,
const char *  date2,
int *  diff 
)

Definition at line 828 of file datetime.c.

Referenced by do_communication(), and KsmPolicyUpdateSalt().

int DtGeneral ( const char *  string,
struct tm *  datetime 
)

Definition at line 329 of file datetime.c.

References COPY2, COPY3, COPY4, DtAppendTime(), DtNumeric(), StrIsDigits(), and StrStrncpy().

Referenced by cmd_import(), DtGeneralString(), and DtParseDateTime().

char* DtGeneralString ( const char *  string)

Definition at line 480 of file datetime.c.

References DtGeneral(), KSM_TIME_LENGTH, and StrStrdup().

int DtIntervalSeconds ( const char *  number,
int *  interval 
)

Definition at line 678 of file datetime.c.

References StrStrtoi().

int DtNow ( struct tm *  datetime)

Definition at line 95 of file datetime.c.

References DtParseDateTime(), KME_TIMESHIFT, and MsgLog().

Referenced by DtParseDateTime().

int DtNumeric ( const char *  string,
struct tm *  datetime 
)

Definition at line 146 of file datetime.c.

References COPY2, and COPY4.

Referenced by DtGeneral().

int DtParseDateTime ( const char *  string,
struct tm *  datetime 
)

Definition at line 546 of file datetime.c.

References DtGeneral(), DtNow(), StrFree, StrStrdup(), StrToLower(), StrTrimL(), and StrTrimR().

Referenced by DtNow(), and DtParseDateTimeString().

char* DtParseDateTimeString ( const char *  string)
void DtSecondsInterval ( int  interval,
char *  text,
size_t  textlen 
)

Definition at line 777 of file datetime.c.

References StrStrncpy().

Referenced by KsmParameterShow().

int DtXMLIntervalSeconds ( const char *  number,
int *  interval 
)

Definition at line 928 of file datetime.c.

Referenced by cmd_genkeys(), get_conf_key_info(), ReadConfig(), and SetParamOnPolicy().