![]() |
|
You can set environment variables to override the following end-user formats in the client locale:
This section explains how to customize these end-user formats. For an introduction to end-user formats, see End-User Formats.
The GLS locales define end-user formats for dates and times, which you do not usually need to change. However, you can customize end-user formats for DATE and DATETIME values (for example, 10-27-97 for the date 10/27/97) with the following environment variables.
A date or time end-user format string specifies a format for the manipulation of internal DATE or DATETIME values as a literal string.
Tip: When you set these environment variables, you do not affect the internal format of the DATE and DATETIME values within a database.
The GL_DATE and GL_DATETIME environment variables support formatting directives that allow you to specify an end-user format. A formatting directive has the form %x (where x is one or more conversion characters).
The GL_DATE and GL_DATETIME environment variables provide support for alternative dates and times such as era-based (Asian) formats. These alternative formats support dates such as the Taiwanese Ming Guo year and the Japanese Imperial-era dates.
Tip: The DBDATE and DBTIME environment variables also provide some support for era-based dates.
To specify era-based formats for DATE and DATETIME values, use the E conversion modifier, as follows:
Informix products use the following precedence to determine the end-user format for an internal DATE value:
Informix products use the following precedence to determine the end-user format for an internal DATETIME value:
For more information on these formatting directives, see GL_DATE and GL_DATETIME.
The GLS locales contain end-user formats, which you do not usually need to change. However, you can set the DBMONEY environment variable to customize the appearance of the currency notation. For information on the DBMONEY environment variable, see the Informix Guide to SQL: Reference.
A monetary end-user format string specifies a format for the manipulation of internal DECIMAL, FLOAT, and MONEY values as monetary literal strings. Informix products use the following precedence to determine the end-user format for a MONEY value: