NCBI C++ ToolKit
|
Functions to manipulate DBDATETIME structures. More...
Functions | |
int | dbdatecmp (DBPROCESS *dbproc, DBDATETIME *d1, DBDATETIME *d2) |
Compare DBDATETIME values, similar to strcmp(3). More... | |
const char * | dbmonthname (DBPROCESS *dbproc, char *language, int monthnum, DBBOOL shortform) |
Get name of a month, in some human language. More... | |
Functions to manipulate DBDATETIME structures.
Defined by Sybase only. These are not implemented:
int dbdatecmp | ( | DBPROCESS * | dbproc, |
DBDATETIME * | d1, | ||
DBDATETIME * | d2 | ||
) |
Compare DBDATETIME values, similar to strcmp(3).
dbproc | contains all information needed by db-lib to manage communications with the server. |
d1 | a DBDATETIME structure address |
d2 | another DBDATETIME structure address |
0 | d1 = d2. |
-1 | d1 < d2. |
1 | d1 > d2. |
Definition at line 5674 of file dblib.c.
References CHECK_CONN, CHECK_NULP, dbproc, DBDATETIME::dtdays, DBDATETIME::dttime, FAIL, TDS_DBG_FUNC, and tdsdump_log.
Get name of a month, in some human language.
dbproc | contains all information needed by db-lib to manage communications with the server. |
language | ignored. |
monthnum | number of the month, starting with 1. |
shortform | set to TRUE for a three letter output ("Jan" - "Dec"), else zero. |
NULL
on error. Definition at line 6880 of file dblib.c.
References CHECK_NULP, CHECK_PARAMETER, dbproc, NULL, SYBENULL, TDS_DBG_FUNC, and tdsdump_log.