TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: JONATHAN DE BOYNE POLLARD
from: Ian Moote
date: 1999-12-01 07:23:00
subject: OS/2 kernel immunity from

JP> 16-bit OS/2 (/i.e./ version 1.x) provides only a means for directly
JP> reading the RTC hardware, Dos16GetDateTime().  It returns the date
JP> and time as a broken-down structure, the members of which are either
JP> UCHARs or USHORTs.  The `Year' field, in particular, is a `USHORT'
JP> meaning that the data structure can cope with years up until the
JP> year 65535.

Excellent!! Directly and unequivocally answers my question! Thank you 
very much! [:)

You did raise another interesting point, however:

JP> (The Dos32GetDateTime() function is still there, for backwards
JP> compatibility and ease of porting 16-bit applications, but this is
JP> really the wrong way to obtain the system time on 32-bit OS/2, since
JP> it hits the clock hardware directly.)

Are you saying that DOSQuerySysInfo() does not get its information 
directly from the clock? If not, how does it keep track of the time?


JP> Operating system kernels are generally the wrong place to look for
JP> Year 2000 problems.

[:))) Yeah, I know. But in my work I can't afford to approach my job in 
a lacadaisical fashion. I've got to know the facts with as little doubt 
as possible.

Thanks for all the info. Take care and TTYL.

---
 þþ Using a TNC is another way to really use a C=64.                        

--- AdeptXBBS v1.11y (FREEWare/2)
* Origin: Moote Pointe (1:2424/140)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.