Download Print this page

Radio Shack TRS-80 Model II Reference Manual page 235

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

Advertisement

Technical Information
DATE
(function code 45)
This routine sets or returns the real-time (time and date). The data is returned
as a 26-byte
ASCII
string containing 8 fields.
CONTENTS OF TIME/DATE STRING (SAMPLE)
NAME OF MON.
DAY OF YA.
DAY
MON.
DAY OF
YEAR
TIME
MON.
DAYOF
#
WEEK
Example Time/Date string:
SATAPR28197911813.20.42045
,~
Represents the data "Saturday, April 28, 1979, 118th day of the year,
13:20:42 hours, 4th month of the year, 5th day of the week.
Notes:
DAY OF WEEK
Field: Monday is day O. The date calculations are based
on the Julian Calendar.
Entry Conditions
B
=
Function Switch
IfB
=
0 (Get time/date):
(HL)
=
26-byte buffer where date/time will be stored
If B
=
1 (Set date):
(HL)
=
to-byte buffer containing date in this form:
MMjDDjYYYY
IfB
=
2 (Set time):
(HL)
=
8+ byte buffer containing time in this form:
HH.MM.SS
271

Advertisement

loading