TIME$
Examples
PRINT TAN<7.8G)
prints - 9.39702.
Sample Program
720
INPUT
"ANGLE
IN
DEGREES";
ANGLE
730
T =
TAN(ANGLE
*
.01745328)
740
PRINT
"TAN
IS"
T
ITIME$
Function I
Returns the time of the day.
This function lets you use the time
in
a program.
The operator sets the time initially when TRSDOS
is
started up. When
you request the time, TIME$ supplies
it
using this format:
14:47:18
which means 14 hours, 47 minutes and 18 seconds (24-hour clock).
To change the time, use the TRSDOS command, TIME. For example,
SYSTEM
"TIME
10:15:00"
Example
A$
= TIME$
stores the current time
in
A$.
Sample Program
1130
SYSTEM
"TIME
10:15:00"
1140
IF
LEFT$(TIME$.
5)
=
"10:15"
THEN
PRINT
"TillIe
is
10:15
A.M.--tillle
to
picf~
UP
the
lllail."
:
END
1150
GOTO
1140
2-168