DATE functions for C

Note: The following DATE functionality is available only to users of IBM® Informix® ESQL/C. To use these functions, ESQL/C users will need to 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

Related reference

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

BIGINT functions for C
DATETIME and INTERVAL functions for C
DECIMAL functions for C
Invoking a C Function from an EGL Program

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.