Download Print this page

Radio Shack TRS-80 Model II Reference Manual page 111

Disk operating system
Hide thumbs Also See for TRS-80 Model II:

Advertisement

Library Commands
TIME
Reset or Get the Time
TIME.hh.mm.ss
hh is atwo..digit bourspecifipation.
mm is
atwo~digitminutespecification.
ss isa
two~digit
second specification. If .ss is omitted, .OOisuseq.
If hh.mm.ss is given,
TRSDOS
resets tbe time.
If hh.mm.ss is not given,
TRSDOS
displays the current time and date.
This command lets you reset the time or display the date and time.
The operator sets the time initially when
TRSDOS
is started up. After that,
TRSDOS
updates the time and date automatically, using its
built~in
clock and
calendar.
When you request the time,
TRSDOS
displays it in this format:
THU JUl 19 1979 200 -- 14.15.31
for Thursday, July 19, 1979, the 200th day of the year, 2:15:31 pm.
Note: If the time passes 23:59:59,
TRSDOS
does not start over at 00:00:00.
Instead, it continues with 24:00:00. However, the next time you use the
TIME
or
DATE
command, the time will be converted to its correct 24-hour value,
and the date will be updated. If the clock is allowed to run past 59.59.59, it will
re-cycle to zero, and the date will not be updated to include the 60-hour
period.
Examples
TII'1E
Displays the current date and time.
T II'1E 13.
2iZl. illiZI
Resets the time to 1:20:00 pm.
T I 1'1E 18. 2
l
+
Resets the time to 6:24:00
Note:
Periods are used instead of the customary colons since periods are easier to
type in - you don't have to press (SHIFT).
147

Advertisement

loading