Alternative time formats
To support alternative time formats in an display format, GL_DATE accepts the conversion modifiers.
The conversion modifiers are:
E
indicates use of an alternative era format, which the locale defines.O
(the letter O) indicates use of alternative digits, which the locale also defines.
The following table shows time-formatting directives that
support conversion modifiers.
Alternative time format | Description |
---|---|
%Ec | Is replaced by a special date/time representation for the era that the locale defines. It is the same as %c if the locale does not define an era. |
%EX | Is replaced by a special time representation for the era that the locale defines. It is the same as %X if the locale does not define an era. |
%OH | Is replaced by the hour in the alternative digits that the locale defines (24-hour clock). It is the same as %H if the locale does not define alternative digits). |
%OI | Is replaced by the hour in the alternative digits that the locale defines (12-hour clock). It is the same as %I if the locale does not define alternative digits). |
%OM | Is replaced by the minute with the alternative digits that the locale defines. It is the same as %M if the locale does not define alternative digits. |
%OS | Is replaced by the second with the alternative digits that the locale defines. It is the same as %S if the locale does not define alternative digits. |
The TIME category of the locale defines the following
era information:
- The full and abbreviated names for an era
- A special date representation for the era (which the %Ex formatting directive uses)
- A special time representation for the era (which the %EX formatting directive uses)
- A special date/time representation for the era (which the %Ec formatting directive uses)
The NUMERIC category of the locale defines the alternative digits for a locale (which the %Ox formatting directives use).