DATE functions for C

The following DATE functionality is available only to users of IBM® Informix® ESQL/C. To use these functions, ESQL/C users must manually link their C code to the ESQL/C libraries.

The following date-manipulation functions are in the ESQL/C library. They convert dates between a string format and the internal DATE format.

Function Name Description
rdatestr( ) Converts an internal DATE to a character string format
rdayofweek( ) Returns the day of the week of a date in internal format
rdefmtdate( ) Converts a specified string format to an internal DATE
rfmtdate( ) Converts an internal DATE to a specified string format
rjulmdy( ) Returns month, day, and year from a specified DATE
rleapyear( ) Determines whether the specified year is a leap year
rmdyjul( ) Returns an internal DATE from month, day, and year
rstrdate( ) Converts a character string format to an internal DATE
rtoday( ) Returns a system date as an internal DATE

For more information about the individual functions, see the following: IBM Informix ESQL/C Programmer's Manual.


Feedback