The ESQL/C DATETIME-format functions are as follows:
These functions support extensions to format era-based DATETIME values:
This section describes locale-specific behavior of the ESQL/C DATETIME-format functions. For general information about the ESQL/C DATETIME-format functions, see the IBM Informix: ESQL/C Programmer's Manual.
The GL_DATETIME setting can affect results that these ESQL/C DATETIME-format functions generate. The end-user format that GL_DATETIME specifies overrides date and time formats that the client locale defines. For more information, see Precedence for DATETIME End-User Formats.
The ESQL/C DATETIME-format functions support the extended era-based date and time format strings for the DBTIME environment variable. When you set DBTIME to an era-based format, these functions can convert between literal DATETIME strings and internal DATETIME values.
If you set DBTIME to a era-based DATETIME format (which is specific to a Chinese or Japanese locale), make sure to set the CLIENT_LOCALE environment variable to a locale that supports era-based dates and times.
The following table shows the extended-format strings that the ESQL/C DATETIME-format functions support.
Format | Description | December 27, 1991 Printed |
---|---|---|
%y %m %dc1 | Taiwanese Ming Guo date | 80 12 27 |
%Y %m %dc1 | Taiwanese Ming Guo date | 0080 12 27 |
%y %m %dj1 | Japanese era with abbreviated era symbols | H03 12 27 |
%Y %m %dj1 | Japanese era with abbreviated era symbols | H0003 12 27 |
%y %m %dj2 | Japanese era with full era symbols | A1A2B1B203 12 27 |
%Y %m %dj2 | Japanese era with full era symbols | A1A2B1B20003 12 27 |
In addition to the formats in the preceding table, these ESQL/C DATETIME-format functions support the GLS date and time specifiers. For a list of these specifiers, see GL_DATE and GL_DATETIME.
The ESQL/C DATETIME-format functions use the following precedence to determine the end-user format of values in DATETIME columns:
For more information on the precedence of DBDATE, GL_DATE, and CLIENT_LOCALE, refer to Date and Time Precedence.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]