
Section 5 Command Descriptions
5.86
TIME
The
TIME
command outputs the internal clock time in the format determined by
the
TIME
FORMAT
command, followed by the programmed serial output terminators.
Refer to the
TIME
FORMAT
command for a list of the available format options. This
time string can also include optional
DATE
and
DAY
information. If
DATE
or
DAY
information is requested, they are appended to the
TIME
information in the same order,
delimited by spaces.
SYNTAX
TIME
[DATE
|
DAY
|
DATE
DAY
|
DAY
DATE
]
TIME
returns the time in the format determined by the
TIME
FORMAT
command.
The optional
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.
RESPONSE Returns time and optionally date and day information
MODE Any
BUS STATES None
EXAMPLES PRINT#1,"TIME"
INPUT #1,T$
Read the time string
PRINT T$
Printed to the screen
11:30:20 AM
Output is format dependent
PRINT#1,"TIME DAY DATE"
INPUT #1,T$
Read the date, day and time string
PRINT T$
Printed to the screen
11:30:20 AM Monday 11-04-52
Output is format dependent
Comentarios a estos manuales