d
date(1) | date(1) |
%w Weekday as a
%W Week number of the year (Monday as the ®rst day of the week) as a
%x Current date representation. For example, 01/12/94. %X Current time representation. For example, 19:45:58.
%y Year without century as a
%Y Year with century as a
%%The % character.
Obsolescent Directives
The following directives are provided for backward compatibility. It is recommended that the preceding directives be used instead.
%D Date in usual U.S. format. For example, 01/12/94. Use %x or %m/%d/%y instead.
%F Full month name. For example, January. Use %B instead. %h Abbreviated month name. For example, Jan. Use %b instead.
%r Time in
%z Time zone name (or no characters if time zone cannot be determined). For example, PST. Use %Z instead.
Modi®ed Formatting Directives
Some Formatting Directives can be modi®ed by the E and O modi®er characters to indicate a different format or speci®cation for the language speci®ed in the LC_TIME environment variable.
If the corresponding keyword (era, era_year, era_d_fmt, and alt_digit) is not speci®ed or not supported, the unmodi®ed ®eld descriptor value is used. The command
LC_ALL=language locale
Alternate appropriate date and time representation.
The name of the base year in alternate representation.
Alternate date representation.
Offset from %EC (year only) in the alternate representation.
Full alternate year representation.
Day of month using the alternate numeric symbols.
Day of month using the alternate numeric symbols with leading
Hour
Hour
Month using the alternate numeric symbols.
Minutes using the alternate numeric symbols.
Seconds using the alternate numeric symbols.
Week number of the year (Sunday is the ®rst day of the week) using the alternate numeric symbols.
Weekday as number using the alternate numeric symbols (Sunday=0).
Weekday number of the year (Monday is the ®rst day of the week) using the alternate numeric symbols.
Section 1−166 | − 3 − |