Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

File Format Reference Pages locale(4)
%OW Specifies the week number of the year (Monday as the first day of the week) using the
locale’s alternate numeric symbols.
%Oy Specifies the year (offset from %C) in alternate representation.
%p Represents the a.m. or p.m. string defined by the am_pm statement.
%r Represents the 12-hour clock time with a.m./p.m. notation as defined by the
t_fmt_ampm statement.
%S Represents the seconds of the minute as a decimal number (00 to 59).
%t Specifies a tab character.
%T Represents 24-hour clock time in the format %H:%M:%S (for example, 16:55:15).
%U Represents the week of the year as a decimal number (00 to 53). Sunday, or its
equivalent as defined by the day statement, is considered the first day of the week for
calculating the value of this field descriptor.
%w Represents the day of the week as a decimal number (0 to 6). Sunday, or its equivalent
as defined by the day statement, is considered as 0 (zero) for calculating the value of
this field descriptor.
%W Represents the week of the year as a decimal number (00 to 53). Monday, or its
equivalent as defined by the day statement, is considered the first day of the week for
calculating the value of this field descriptor.
%x Represents the date format defined by the d_fmt statement.
%X Represents the time format defined by the t_fmt statement.
%y Represents the year of the century (00 to 99).
%Y Represents the year as a decimal number (for example, 1989).
%Z Represents the time zone name, if one can be determined (for example, EST); no char-
acters are displayed if a time zone cannot be determined.
%% Specifies a % (percent sign) character.
The following is an example of a possible LC_TIME category listed in a locale definition source
file:
LC_TIME
#
#Abbreviated weekday names (%a)
abday "<S><u><n>";"<M><o><n>";"<T><u><e>";"<W><e><d>";\
"<T><h><u>";"<F><r><i>";"<S><a><t>"
#Full weekday names (%A)
day "<S><u><n><d><a><y>";"<M><o><n><d><a><y>";\
"<T><u><e><s><d><a><y>";"<W><e><d><n><e><s><d><a><y>";\
<T><h><u><r><s><d><a><y>";"<F><r><i><d><a><y>";\
<S><a><t><u><r><d><a><y>"
#Abbreviated month names (%b)
abmon "<J><a><n>";"<F><e><b>";"<M><a><r>";"<A><p><r>";\
"<M><a><y>";"<J><u><n>";"<J><u><l>";"<A><u><g>";\
<S><e><p>";"<O><c><t>";"<N><o><v>";"<D><e><c>"
527188-021 Hewlett-Packard Company 1127