[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Minor cosmetic Y2K bug in ProTERM
>> Matt Ackeret writes ...
>> > I just realized, ProTERM says "<No Date>" on the status line, and will this
>> > entire year. I just played with the year, and it works right for 99, and
>> > for 01 (it only shows 2 digits for the year)..
That is a bug - only 0/0/00 should display as <No Date> while 1/1/00 should
be fine. Given that the date is stored in two bytes:
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| year | month | day |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
I would hazard a guess and say that it is just testing the byte with the year
in it for zero. Have you tried months 8..12 yet? That would set the bottom bit
in the year byte. It should test both bytes and only report <No Date> if both
are zero.
--
David Wilson School of IT & CS, Uni of Wollongong, Australia