MPE/iX Shell and Utilities Reference Manual, Vol 1

date(1) MPE/iX Shell and Utilities date(1)
%u the weekday number with Monday being 1 and Sunday being 7.
%V the week number in the year, with Monday being the first day of the week (01 to 53).
If the week containing January 1 has four or more days in the new year, it is week 1
of the new year; otherwise it is week 53 of the previous year.
%W the week number in the year, with Monday being the first day of the week (00 to 53).
All days before the first Monday of the new year are in week 0.
%w the weekday number, with Sunday being 0 and Saturday being 6.
%X the appropriate time representation in the current locale.
%x the appropriate date representation in the current locale.
%Y the year.
%y the two-digit year (offset from %C).
%Z the time zone name (for example, EDT).
%% a percent-sign character.
The date command also supports the following modified field descriptors to indicate a differ-
ent format as specified by the locale indicated by
LC_TIME
. If the current locale does not
support a modified descriptor, date uses the unmodified field descriptor value.
%EC the name of the base year (period) in the current locale’s alternate representation.
%Ec the current locale’s alternate date and time representation.
%Ex the current locale’s alternate date representation.
%EY the full alternate year representation.
%Ey the offset from %EC (year only) in the current locale’s alternate representation.
%Od the day of month using the current locale’s alternate numeric symbols .
%Oe the day of month using the current locale’s alternate numeric symbols in a two-char-
acter, right-justified, blank-filled field.
%OH the hour (24-hour clock) using the current locale’s alternate numeric symbols.
%OI the hour (12-hour clock) using the current locale’s alternate numeric symbols.
%OM the minutes using the current locale’s alternate numeric symbols.
%Om the month using the current locale’s alternate numeric symbols.
%OS the seconds using the current locale’s alternate numeric symbols.
1-152 Commands and Utilities