MPE/iX Shell and Utilities Reference Manual, Vol 1

date(1) MPE/iX Shell and Utilities date(1)
%OU the week number of the year (with Sunday as the first day of the week) using the cur-
rent locale’s alternate numeric symbols.
%Ou the weekday number using the current locale’s alternate numeric symbols with Mon-
day being 1 and Sunday being 7.
%OV the week number in the year using the current locale’s alternate numeric symbols,
with Monday being the first day of the week. 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.
%OW the week number of the year (with Monday as the first day of the week) using the
current locale’s alternate numeric symbols.
%Ow the weekday as a number using the current locale’s alternate numeric symbols with
Sunday being 0 and Saturday being 6.
%Oy the year (offset from %C) using the current locale’s alternate numeric symbols.
EXAMPLES
The command
date ’+%a %b %e %T %Z %Y’
produces the date in the default format. For example,
Wed Feb 26 14:01:43 EST 1986
ENVIRONMENT VARIABLES
date uses the following environment variable:
TZ
gives the time zone for date to use when displaying the times. This is ignored if
you specify either the –c or the –u option. For more information on this variable,
see timezone(3).
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
>0 An error occurred.
Messages
Message: bad date conversion in "string"
Cause: The date and/or time specified on the command line had an invalid format (for
example, the hour is greater than 24).
Action: Check the DESCRIPTION section of this man page for valid date formats.
Commands and Utilities 1-153