Radio Shack TRS-80 Trsdos & Disk Basic Reference Manual page 105

Micro computer system
Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

DISK
BASIC
STR
I
NG -FUNCT
I
ON ED
I
TOR
ENTER INITIAL TEXT STRING
CHRNGE
"DISC" TO "DISK"
EACH TIHE
IT
OCCURS.
TARGET STRING
DISC
LaiJtUJ
REPLACEMENT STRING
DISK UftiiA
POSITION
-
9
CHANGE
"DISK" TO "DISK" EACH
TIME
IT
OCCURS.
POSITION
-
48
CHANGE "DISK" TO "DISK" EACH TIME
IT
OCCURS.
ENTER INITIAL TEXT STRING
E2EE3
READV
TIME$
(get
value of
Real-Time
Clock)
TIMES
TIMES
is
a
function with
no arguments
-
when
executed,
it
returns
a string-value
composed
of
the date
and time
currently stored
in
the
Real-Time Clock
memory
area.
The
string
is
always
17 characters
long
and
has the following format:
MM/DD/YY#HH:MM:SS
(month/day
/year hr:min:sec)
The
hour
appears
in
24-hour form,
e.g.,
1:30
PM
appears
as
13:30.
To
set
the time
and
date, get into
the
DOS
READY
mode
and
use
the
TRSDOS
commands,
TIME
and
DATE,
as
follows
(assume
it's
3:30
PM
on
January
1,
1979):
TIME 15:30:00
R^FH
DATE 01/01/79 RTfFffl
Or,
you
can
set
the
time and
date
under
DISK
BASIC, by
POKEing
the
time and
date values
into the
appropriate addresses
(see
CLOCK,
TRSDOS
Library
Commands).
TIMES
can be
printed or
used
internally
by your program
in
dedicated
applications.
7-19

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents