3.3

Table Of Contents
Console Server Commands
153
This command converts numbers from one base (such as decimal) to another (such as octal).
For instance, to convert decimal 32, type:
otod 32
A message similar to the following appears:
h(0x20) o(040) d(32) u(32) SP
32.0.0.0 Wed Dec 31 16:00:32 1969
In this listing, h stands for hexadecimal, o for octal, d for decimal, and u for unsigned
decimal. The number conversions are followed by the corresponding ASCII character
(space, in this case), and the date value. The 32.0.0.0 is the number shown in IP address
format.
The % and L options can assist you in handling different locale settings and formats. The
following are two examples:
Type:
otod %X 32
A message similar to the following appears:
h(0x20) o(040) d(32) u(32) SP
0.0.0.32 Wed Dec 31 18:00:32 1969
lcl: 18:00:32
gmt: 00:00:32
Type:
otod Lfr 32
A message, with the date in French, similar to the following appears:
locale is fr
h(0x20) o(040) d(32) u(32) SP
0.0.0.32 mercredi 31 décembre 1969, 18:00:32