
Section 5 Command Descriptions
5.20
DATE
The
DATE
command outputs the internal clock date in the format determined by
the
DATE
FORMAT
command, followed by the programmed serial output terminators.
Refer to the
DATE
FORMAT
command for a list of the available format options. This
date string can also include optional
DAY
and
TIME
information. If
DAY
or
TIME
information is requested, they are appended to the
DATE
information in the same order,
delimited by spaces.
SYNTAX
DATE
[
DAY
|
TIME
|
DAY
TIME
|
TIME
DAY
]
DATE
returns the date in the format determined by the
DATE
FORMAT
command.
The optional
DAY
returns the day of the week in the format
determined by the
DAY
FORMAT
command.
The optional
TIME
returns the time in the format determined by
the
TIME
FORMAT
command.
RESPONSE Returns date and optionally day of week and time information
MODE Any
BUS STATES None
EXAMPLES PRINT#1,"DATE"
INPUT #1,D$
Read the date string
PRINT D$
Printed to the screen
11-04-52
Output is format dependent
PRINT#1,"DATE DAY TIME"
INPUT #1,D$
Read the date, day and time string
PRINT D$
Printed to the screen
11-04-52 Monday 12:31 PM
Output is format dependent
Komentarze do niniejszej Instrukcji