This will only work until 2065. If a full year value is required,
shouldn't the call's return values be used in conjunction with the CMOS
RAM century value to calculate the full year?
Of course, I agree that if you want to obtain a full year value, OS_Word
14,1 is not the right call to be using. But you guys did bring it up...
:-)
Archer
End.
>This will only work until 2065. If a full year value is required,
>shouldn't the call's return values be used in conjunction with the CMOS
>RAM century value to calculate the full year?
I think that by 2065 OS_Word will be safely obsolete and removed, and I'd be
moderately surprised if RISC OS were still around.
OTOH, a somewhat hacked version of RISC OS 4 will probably be running the
entire 'net (good Lord! only someone over the age of 80 would be pompous
enough *still* to put the apostrophe in "'net"; that's like writing "'phone"
for "telephone" 100 years ago!).
--
http://sc3d.org/rrt/ | certain, a. insufficiently analysed
> >This will only work until 2065. If a full year value is required,
> >shouldn't the call's return values be used in conjunction with the CMOS
> >RAM century value to calculate the full year?
> I think that by 2065 OS_Word will be safely obsolete and removed, and
> I'd be moderately surprised if RISC OS were still around.
Erm, that kind of logic _is_ the reason for the Y2K problem... :-(
--
_ _ | Acorn Risc PC, StrongARM @ 287 MHz
| | | _, _|__|_ |) ' _, , | 256+2 Mbyte RAM, >40 Gbyte HD
| | | / | | | |/\ | / | / \ | ------------------------------------
| | |_/\/|_/|_/|_/| |/|/\/|_/ \/ | http://www.deutschlandwetter.de
>> I think that by 2065 OS_Word will be safely obsolete and removed, and
>> I'd be moderately surprised if RISC OS were still around.
>
>
>Erm, that kind of logic _is_ the reason for the Y2K problem... :-(
True, but take it in context. First, a different time-span (about 60 years
to 2065, whereas non-Y2K-compliant systems tend to be less than 30 years
old). Secondly, RISC OS has been used mostly in systems with quick turnover
(workstations, embedded devices), not the long-lasting mainframe systems
which cause most of the Y2K problems. (The point is not that the hardware
has a quick turnover, but that the OS does; this is partly due to hardware).
However, my second paragraph, which you deleted, made exactly the point you
make above.
> Gareth J Dykes wrote:
> >
> > RISCOS Ltd Millennium compliance statement
> > ------------------------------------------
> >
> [snip]
> > In order to comply with this, the following calls have changed slightly
> > in their operation:
> >
> > OS_Word 14,1
> >
> > This call returns the current time as a set of BCD values. You should
> > treat the year in the following manner :
> >
> > if year < 66 then
> > fullyear = 2000 + year
> > else
> > fullyear = 1900 + year
>
> This will only work until 2065. If a full year value is required,
> shouldn't the call's return values be used in conjunction with the CMOS
> RAM century value to calculate the full year?
No, you should bloody well do it properly! I'm just confirming that the
operation of the call is defined and that is the way that OS_Word 14,1 works.
You don't use it if you want your programs to work after that.
> Of course, I agree that if you want to obtain a full year value, OS_Word
> 14,1 is not the right call to be using. But you guys did bring it up...
> :-)
It completes the statement of millenium compliance. That's all...
--
Justin Fletcher, Software Engineer, RISCOS Ltd
[ Opinions expressed are not necessarily those of my employer ]
> This will only work until 2065. If a full year value is required,
> shouldn't the call's return values be used in conjunction with the CMOS
> RAM century value to calculate the full year?
That still breaks code which refers to old dates.
> Of course, I agree that if you want to obtain a full year value, OS_Word
> 14,1 is not the right call to be using. But you guys did bring it up...
> :-)
AIUI the government has defined this behaviour to be acceptable, and any
other behaviour to be unacceptable. I imagine that this announcement was
simply to conform to that.
Of course, in reality it's completely irrelevant, because this call is not
used in new software so there's nothing to take advantage of it's "millenium
compliancy", and old software breaks anyway.
Has anybody actually found a RISC OS program which uses OS_Word 14,1?
Charlie
--
New RISC OS mp3 player: http://www.fish.zetnet.co.uk/
> Reuben Thomas <r...@persephone.joh.cam.ac.uk> wrote:
> > On Wed, 21 Jul 1999 01:21:18 GMT, Kade Hansson
> > <kad...@postoffice.utas.edu.au> wrote:
> > >This will only work until 2065. If a full year value is required,
> > >shouldn't the call's return values be used in conjunction with the CMOS
> > >RAM century value to calculate the full year?
> > I think that by 2065 OS_Word will be safely obsolete and removed, and
> > I'd be moderately surprised if RISC OS were still around.
> Erm, that kind of logic _is_ the reason for the Y2K problem... :-(
In general, yes, but in this case, no. OS_Word 14, 1 has been depreciated
for some time now, and the PRM already states that it should not be used and
is only included for backwards compatibility. The call is not generally used.
I assume that the only reason anything at all has been done is to allow 100%
Y2K compliance to be claimed, it is not as though it will have any practical
consequences.
--
Chesney
If you keep your mind sufficiently open, people will throw a lot of rubbish
into it. - William A. Orton
> OTOH, a somewhat hacked version of RISC OS 4 will probably be running the
> entire 'net (good Lord! only someone over the age of 80 would be pompous
> enough *still* to put the apostrophe in "'net"; that's like writing "'phone"
> for "telephone" 100 years ago!).
Eek. I write "'phone" and "'net". The former more often than the latter.
--
Gareth McCaughan Gareth.M...@pobox.com
sig under construction
> > Reuben Thomas <r...@persephone.joh.cam.ac.uk> wrote:
> > > On Wed, 21 Jul 1999 01:21:18 GMT, Kade Hansson
> > > <kad...@postoffice.utas.edu.au> wrote:
> > > >This will only work until 2065. If a full year value is required,
> > > >shouldn't the call's return values be used in conjunction with the
> > > >CMOS RAM century value to calculate the full year?
> > > I think that by 2065 OS_Word will be safely obsolete and removed, and
> > > I'd be moderately surprised if RISC OS were still around.
> > Erm, that kind of logic _is_ the reason for the Y2K problem... :-(
> In general, yes, but in this case, no.
[...]
Well, I was not (really) refering to this particular case, but to the
argument that 'surely noone will use this until then'...
> I think that by 2065 OS_Word will be safely obsolete and removed, and I'd be
> moderately surprised if RISC OS were still around.
>
> OTOH, a somewhat hacked version of RISC OS 4 will probably be running the
> entire 'net (good Lord! only someone over the age of 80 would be pompous
> enough *still* to put the apostrophe in "'net"; that's like writing "'phone"
> for "telephone" 100 years ago!).
Well, I don't even plan to live that long and I
still make sure punctuation is correct on words such
as 'phone, 'flu' and Plug'n'Pray. Odd that Microsoft
didn't get it right with 95 (I'm refering to the
name, here).
Alas, in these days of popularist culture, being
right doesn't seem to count for much. Damn all these
humans...
--
Geoff Crossland
gcrossland @ eccentricity . freeserve . co . uk
!BootBoard - uses OS_Word 14,1 to look up the month number (discards
the year number). There's a newer version around which doesn't use
OS_Word 14,1 though (why? I'm running Justin's module which makes any
all to OS_Word 14,1 return an error).
cheers,
--
iain. <http://eh.org/~koschei/>
Famous last RPG words, number 900 -
"That's right, I'm going to polymorph into a pergrine falcon and
attempt to land on the back of one of the 12 griffons flying above us."
> !BootBoard - uses OS_Word 14,1 to look up the month number (discards the
> year number). There's a newer version around which doesn't use OS_Word 14,1
> though (why? I'm running Justin's module which makes any all to OS_Word
> 14,1 return an error).
Indeed. I can't see a problem if you're not using the year byte anyway. I use
it occasionally to find the day number of the month.
--
Paul Vigay
_ _________________________________
/_| _ _. _ /| /_ _/_ /' ANT Technical Support
/ || (_|(_)/ |/(/_/_ / mailto:ant.s...@argonet.co.uk
________ (_) ___________./ http://www.argonet.co.uk/ant/
> Has anybody actually found a RISC OS program which uses OS_Word 14,1?
I use it occasionally, but not for reading the year!
Yes but how do you know the user is not a historian or geologist and does
mean 207AD?
Chris Evans
--
CJE Micro's / NCS 'Acorn Centre of Technology'
Telephone: (01903) 523222 Fax: (01903) 523679
ch...@cje.co.uk http://www.cje.co.uk/
78 Brighton Road, Worthing, West Sussex, BN11 2EN.
Where did you get this from? It's not on Justin's website AFAICT.
--
Liam Gretton l...@star.le.ac.uk
Space Research Centre, http://www.src.le.ac.uk/
Physics and Astronomy Dept, phone +44 (0) 116 223 1039
Leicester University, fax +44 (0) 116 252 2464
Leicester LE1 7RH, UK http://xmm4.xra.le.ac.uk/
> > This will only work until 2065.
> Can't you return 0 to xxx, and add 1900 to it?
> For example, year 207 would by 2107.
Erm, the values are BCD (binary coded decimal) and thus can only hold 0 to
99 in a byte...
> In article <ant2202240b0Jgv#@150.203.115.93>, iain truskett - koschei
> <URL:mailto:kos...@eh.org> wrote:
> > (why? I'm running Justin's module which makes any all to OS_Word 14,1
> > return an error).
>
> Where did you get this from? It's not on Justin's website AFAICT.
It was something I passed around for people to test their softwares
compatibility long ago... At some point I might release it but... it's
/really/ not worth it!
>Reuben Thomas wrote:
>
>> OTOH, a somewhat hacked version of RISC OS 4 will probably be running the
>> entire 'net (good Lord! only someone over the age of 80 would be pompous
>> enough *still* to put the apostrophe in "'net"; that's like writing "'phone"
>> for "telephone" 100 years ago!).
>
>Eek. I write "'phone" and "'net". The former more often than the latter.
Some people even write "CJE Micro's" ... ;-)
Oh no, what have I started now ?
--
"This moment hangs, like your ragged hair."
Celebrate - Fields of the Nephilim
Ah, ha! Just seen this!
> Has anybody actually found a RISC OS program which uses OS_Word 14,1?
Yes. Termite's web browser. It uses it to stick the date/time in email
messages (from mailto: URLs) which are generated by it's built-in mailer
(anyone want to fix the OLE code?). Interestingly, it uses a similar
bodge to get around the date issue until about 2069...
Ta da! :-)
--
Richard.
"And he never shows his feelings, But the fool on the hill."