16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

date<br />

Example<br />

%OW The week number of the year (0–53) (with Monday as the first day of the<br />

week) using the current locale’s alternate numeric symbols.<br />

%Ow The weekday as a number using the current locale’s alternate numeric<br />

symbols (Sunday=0).<br />

%Oy The year (offset from %C) using the current locale’s alternate numeric<br />

symbols.<br />

The command:<br />

date ’+%a %b %e %T %Z %Y’<br />

produces the date in the default format—as shown at the start of this command<br />

description.<br />

Environment Variable<br />

date uses the following environment variables:<br />

Localization<br />

Exit Values<br />

Messages<br />

TZ Gives the time zone for date to use when displaying the time. This is<br />

ignored if you specify either the –c or the –u option.<br />

For information on setting the local time zone with the TZ environment<br />

variable, see Appendix I.<br />

date uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v LC_TIME<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

>0 Failure due to any of the following:<br />

v An incorrect command-line option<br />

v Too many arguments on the command line<br />

v A bad date conversion<br />

v A formatted date that was too long<br />

v You do not have permission to set the date<br />

Possible error messages include:<br />

Bad format character x<br />

A character following “%” in the format string was not in the list of field<br />

descriptors.<br />

No permission to set date<br />

The system has denied you the right to set the date.<br />

182 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!