NCBI C++ ToolKit
Functions
Datetime functions

Functions to manipulate DBDATETIME structures. More...

+ Collaboration diagram for Datetime functions:

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...
 

Detailed Description

Functions to manipulate DBDATETIME structures.

Defined by Sybase only. These are not implemented:

Function Documentation

◆ dbdatecmp()

int dbdatecmp ( DBPROCESS dbproc,
DBDATETIME d1,
DBDATETIME d2 
)

Compare DBDATETIME values, similar to strcmp(3).

Parameters
dbproccontains all information needed by db-lib to manage communications with the server.
d1a DBDATETIME structure address
d2another DBDATETIME structure address
Return values
0d1 = d2.
-1d1 < d2.
1d1 > d2.
See also
dbdate4cmp(), dbmnycmp(), dbmny4cmp().

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.

◆ dbmonthname()

const char * dbmonthname ( DBPROCESS dbproc,
char *  language,
int  monthnum,
DBBOOL  shortform 
)

Get name of a month, in some human language.

Parameters
dbproccontains all information needed by db-lib to manage communications with the server.
languageignored.
monthnumnumber of the month, starting with 1.
shortformset to TRUE for a three letter output ("Jan" - "Dec"), else zero.
Returns
address of null-terminated ASCII string, or NULL on error.
See also
db12hour(), dbdateorder(), dbdayname(), DBSETLNATLANG(), dbsetopt().

Definition at line 6880 of file dblib.c.

References CHECK_NULP, CHECK_PARAMETER, dbproc, NULL, SYBENULL, TDS_DBG_FUNC, and tdsdump_log.

Modified on Sat Jun 08 14:21:21 2024 by modify_doxy.py rev. 669887