Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
locale(4) OSS Shell and Utilities Reference Manual
d_fmt Defines the string used for the standard date format corresponding to the %x field
descriptor. The string can contain any combination of characters and field descriptors.
t_fmt Defines the string used for the standard time format corresponding to the %X field
descriptor. The string can contain any combination of characters and field descriptors.
am_pm Defines the strings used to represent a.m. (before noon) and p.m. (after noon)
corresponding to the %p field descriptor. Recognized values consist of two
semicolon-separated strings. The first string corresponds to the a.m. designation, the
last string to the p.m. designation.
t_fmt_ampm
Defines the string used for the standard 12-hour time format that includes an am_pm
value (%p field descriptor). This statement corresponds to the %r field descriptor.
The string can contain any combination of characters and field descriptors.
era Defines how the years are counted and displayed for each era in a locale, correspond-
ing to the %E field descriptor modifier. For each era, there must be one string in the
following format:
direction:offset:start_date:end_date:name:format
The variables for the era string format are defined as follows:
direction Specifies a - (minus) or + (plus) character. The + character indicates that
years count in the positive direction when moving from the start date to the
end date. The - character indicates that years count in the negative direction
when moving from the start date to the end date.
offset Specifies a number representing the first year of the era.
start_date
Specifies the starting date of the era in yyyy/mm/dd format, where yyyy, mm,
and dd are the year, month, and day, respectively on the Gregorian calendar.
Years prior to the year AD 1 are represented as negative numbers. For exam-
ple, an era beginning March 5th in the year 100 BC would be represented as
-100/03/05.
end_date Specifies the ending date of the era in the same form used for the start_date
variable or one of the two special values -* or +*.A-* value indicates that
the ending date of the era extends backward to the beginning of time. A +*
value indicates that the ending date of the era extends forward to the end of
time. Therefore, the ending date can be chronologically before or after the
starting date of the era. For example, the strings for the Christian eras AD
and BC would be entered as follows:
+:0:0000/01/01:+*:AD:%o %N
+:1:-0001/12/31:-*:BC:%o %N
name Specifies a string representing the name of the era that is substituted for the
%N field descriptor.
format Specifies a strftime() format string to use when formatting the %EY field
descriptor. This string can contain any strftime( ) format control charac-
ters (except %EY) and locale-dependent multibyte characters.
An era value consists of one string (enclosed in quotes) for each era. If more than one
era is specified, each era string is separated by a ; (semicolon).
11−24 Hewlett-Packard Company 527188-021