GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4-147
4
Parameter Block Contents
Parameter block contents for the different data formats are shown on the following pages. For both
data formats:
Hours are stored in 24-hour format.
Day of the week is a numeric value:
Value Day of the Week
1Sunday
2Monday
3Tuesday
4Wednesday
5Thursday
6Friday
7Saturday
To Change/Read Date and Time Using BCD Format:
In BCD format, each of the time and date items occupies a single byte. This format requires six
words. The last byte of the sixth word is not used. When setting the date and time, this byte is
ignored; when reading date and time, the function returns a null character (00).
High Byte Low Byte
Example output parameter block:
Read Date and Time in BCD format
(Sun., July 3, 1988, at 2:45:30 p.m.)
1 = change or 0 = read address 0
1address + 1 1
month year address + 2 07 88
hours day of month address + 3 14 03
seconds minutes address + 4 30 45
(null) day of week address + 5 00 01