News   Magazin   Börse   Links   ArcArchie   Homepages
 News  Home 
y2k und RISC OS 4  
Gareth J Dykes von RISCOS Ltd hat die Änderung in RISC OS 4 im Bezug auf die Jahr 2000 Problematik bekanntgegeben (s. Deja.com). Es gibt wohl kleine Probleme mit RISC OS 3 (s. auch www.acorn.com/acorn/news/year2000/). Bei RISC OS 4 wurde OS_Word 14,1 (aktuelle Zeit als BCD) und OS_Word 14,2 (konvertiert BCD in Zeichenkette) verändert.

OS_Word 14,1 und OS_Word 14,2:
if year < 66 then
  fullyear = 2000 + year
else
  fullyear = 1900 + year


In Zukunft man es wie folgt machen:
DIM block 12,output 36
block?0=3:REM Read time in 5 byte form
SYS "OS_Word",14,block
SYS "Territory_ConvertTimeToOrdinals",-1,block+1,output
REM output!0 = centisecond
REM output!4 = second
REM output!8 = minute
REM output!12 = hour
REM output!16 = day of month
REM output!20 = month in year
REM output!24 = year from 1900
REM output!28 = day of week
REM output!32 = day of year
cms, 21. Juli 1999  
ArcSite   News   Magazin   Börse   Links   ArcArchie   Homepages