|
|
|
|
Choosing Languages, and Date and Time Formats
You can also select the time and date formats for many SHOW commands from a predefined list or define new time and date formats.
The SHOW TIME command does not include this feature
because the SHOW TIME command is processed completely by DCL, which
does not have access to the LIB$ routines necessary to format the
output. In addition, the SHOW commands for batch and print operations were modified to include, in the default time-stamp, seconds as well as hours and minutes. These new features were not previously documented. |
$ SHOW USERS OpenVMS User Processes at JANUARY 15, 2001 10:16 AM Total number of users = 7, number of processes = 11 Username Node Interactive Subprocess Batch MCDERMOT ARD26B 1 PASTERNAK ARD26B - 2 1 . . .Later, users can override the system defaults set up by the system manager and select their own date and time formats.
Steps to Change Languages, and Dates and Times
For languages other than English or date/time formats other than the defaults, you must complete these steps.
HP recommends that you include these steps within the command procedure SYS$MANAGER:SYSTARTUP_VMS.COM. |
Specifying Languages Other Than English
Help/Message language variants might become available in a future release of OpenVMS or on a per-country basis. |
Because English is the default language and must therefore always be available, English spellings are not taken from logical name translations; rather, they are looked up in an internal table.
For example, to specify the French, German, and Italian languages, you must define SYS$LANGUAGES:
To add another language, for example, FINNISH, you must add FINNISH to the definition of SYS$LANGUAGES and execute the command procedure again.$
DEFINE SYS$LANGUAGES FRENCH, GERMAN, ITALIAN
Invoking
LIB$DT_STARTUP.COM
The SYS$MANAGER:LIB$DT_STARTUP.COM command procedure defines
the possible choices for the following logicals:
To invoke the command procedure, enter the following command:
$ @SYS$MANAGER:LIB$DT_STARTUPIf the translation of SYS$LANGUAGES fails, then English is used. If the translation of LIB$DT_FORMAT or any logical name relating to format fails, the OpenVMS standard ($ASCTIM) representation of the date and time is used, that is, dd-mmm-yyyy hh:mm:ss.cc.
Defining System Default Date and Time Formats
To define default date and time formats, you can use either
user-defined formats, which are shown in
Format Mnemonics, or predefined formats, which are shown in
Predefined Output Date Formats and
Predefined Output Time Formats.
To select a format for a date, time, or both, you must define the LIB$DT_FORMAT logical name using the following logicals:
The order in which these logical names appear in the definition of LIB$DT_FORMAT determines the order in which they are output. A single space is inserted into the output string between the two elements if the definition specifies that both are output. For example, to define systemwide formats:
This definition causes the date to be displayed systemwide in the specified format, followed by a space and the time in the specified format. For example:$
DEFINE/SYSTEM LIB$DT_FORMAT LIB$DATE_FORMAT_006, LIB$TIME_FORMAT_012
13 JAN 97 9:13 AMUser Definitions of Language, and Date and Time Formats explains how users can select their own date and time formats to be displayed for their process.
Defining Your Own Format
To define your own format, define LIB$DATE_FORMAT_nnn and
LIB$TIME_FORMAT_nnn, using the mnemonics shown
in
Format Mnemonics. Replace
nnn with a number of your choice.
For user-defined formats, HP recommends that you use values of _500 and above for _nnn. |
Using Predefined Formats
Predefined Output Date Formats lists all predefined
date format logical names, their formats, and examples of the output
generated using those formats. The mnemonics used to specify the
formats are listed in
Format Mnemonics.
Predefined Output Time Formats lists all predefined time format logical names, their formats, and examples of the output generated using those formats.
User Definitions of Language, and Date and
Time Formats
A user can specify a choice of language by defining the SYS$LANGUAGE
logical. For example:
$ DEFINE SYS$LANGUAGE FRENCHA user can also specify a date and time format by defining the LIB$DT_FORMAT logical. For example:
$
DEFINE LIB$DT_FORMAT LIB$DATE_FORMAT_002, LIB$TIME_FORMAT_006
|
|