In addition to the datetype parameter values used for indicating CS_DATE, CS_TIME, CS_DATETIME, and CS_DATETIME4 datatypes, you can use these values to indicate CS_BIGDATETIME and CS_BIGTIME datatypes when using the cs_dt_crack CS-Library routine:
Value of datetype |
Indicates |
---|---|
CS_BIGDATETIME_TYPE |
CS_BIGDATETIME *dateval |
CS_BIGTIME_TYPE |
CS_BIGTIME *timeval |
Two fields in the CS_DATEREC structure accommodate microsecond precision:
datesecfrac is a CS_INT field holding the number of second fractions.
datesecprec is a CS_INT field holding the precision. For CS_BIGDATETIME and CS_BIGTIME, this field is always 106.
These fields are used only with datetime datatypes having a level of precision greater than milliseconds.
A CS_DATEREC is defined as:
typedef struct cs_daterec {
CS_INT dateyear; /* year */
CS_INT datemonth; /* month */
CS_INT datedmonth; /* day of month */
CS_INT datedyear; /* day of year */
CS_INT datedweek; /* day of week */
CS_INT datehour; /* hour */
CS_INT dateminute; /* minute */
CS_INT datesecond; /* second */
CS_INT datemsecond; /* millisecond */
CS_INT datetzone; /* timezone */
CS_INT datesecfrac; /* second fractions */
CS_INT datesecprec; /* precision */
} CS_DATEREC;
For information about cs_dt_crack, see the Open Client and Open Server Common Libraries Reference Manual.