Home ⇒
RIO-OS ⇒
Programs ⇒
Utilities ⇒
DATE
::.. DATE ..::
Back
Displays or sets the system date |
Syntax |
DATE [yymmdd]
|
Description |
Without an argument the command shows the current system date.
With an argument the command first sets the system date and then
displays the actual value. The system date is stored at the
6 byte memory location
DATE.
The system date is transferred to the file descriptors
in ZDOS and
DFS operations as
'DATE OF CREATION' and
'DATE OF MODIFICATION'.
|
I/O-Units |
Unit 2 (CONOUT): | Output response |
|
Examples |
%DATE 810519
THUESDAY, MAY 19, 1981
Sets and displays the current system date.
%DATE
THUESDAY, MAY 19, 1981
Displays the current system date.
|
Notes |
RIO is not Year-2000 (Y2K) compliant.
The two-digit year 'yy' is always mapped to 1900...1999. |
Length and validity of the argument ('yymmdd' string) are not checked.
Exactly 6 characters are taken from the input buffer,
even if the input was less than 6 characters. |
The fields for 'DATE OF CREATION' and
'DATE OF MODIFICATION'
in the file descriptor are 8 bytes long.
When transfering the date to a file descriptor,
8 consecutive bytes are copied from the start address of
DATE.
These are the 6 bytes of
DATE
and the first two bytes of the variable
TIME,
which is located directly behind
DATE
in system memory. |
Bei P8000-UDOS existiert eine Modifikation des DATE-Kommandos.
Beim Setzen des Datums wird eine ausführbare
Datei (P-File) DAY
auf Laufwerk 0 erstellt, die das eingegebene Datum beinhaltet.
Bei Ausführung von DAY wird das gespeicherte Datum als
Systemdatum aktiviert. |
|
Top
Back