Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p12.f56.n114.z1.fidonet.org!Chris.Gehlker From: Chris.Gehlker@p12.f56.n114.z1.fidonet.org (Chris Gehlker) Newsgroups: comp.sys.mac.programmer Subject: RE: How do you read the Mac's clock in THINK C? Message-ID: <31738.2760E204@stjhmc.fidonet.org> Date: 6 Dec 90 13:37:14 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:114/56.12 - AZ MAC UG, Phoenix AZ Lines: 19 > How do you read the current clock time in THINK C on the Mac? The method I've > been trying NEVER reflects the actual clock time (by calling ctime(NULL)) but > some value that is apparently due to whatever random settings exist in the > memory location. use GetTime(&d); where d is a DateTimeRec defined in OSUtil.h > And to help prevent this problem from arising again, can anyone recommend a > good book on programming in C specifically on the Mac (and possibly even > THINK C in particular? There's a Macintosh Programming Primer -- Inside the Toolbox with THINK C which I hear is very good. -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!56.12!Chris.Gehlker Internet: Chris.Gehlker@p12.f56.n114.z1.fidonet.org