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