Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!WPI.BITNET!GREYELF From: GREYELF@WPI.BITNET Newsgroups: comp.sys.apple Subject: date Message-ID: <8903212307.AA06735@wpi> Date: 21 Mar 89 23:07:30 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 41 >I'm trying to help a friend read system date/time of an A.E. >TimeMaster card and Manx (Aztec) C compiler. They don't have any >ProDos manuals, Apple programming experience, etc., neither do I. >Does anyone know where the date/time info is kept (system time) in >memory with ProDos? In other words, _where_ to read the clock? The >date command with the Manx 'shell' returns everything but the seconds. >Is that all ProDos returns? >Any/all help appreciated. In answer to your questions, the current minute is kept in $BF92, the current hour is kept in $BF93, and the day month and year are encoded as follows: 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 DATE: | year | month | day | $BF91 $BF90 That is, the year is stored in the upper 7 bits of address $BF91, the month is stored in the lowest bit of $BF91, and the upper two bits of $BF90, and the day is stored in the lower 5 bits of $BF90. I help people too guys. >-- >Bruce Davis - SWBT - Advanced Technology Laboratory ------------------------ >1010 Pine St. - Room 502 - St. Louis. MO. 63101. | May the source | >UUCP: : pyramid, uunet, bellcore :...!swbatl!bdd | be with you... | >PHON: 314-235-0709 FAX: 314-235-5797 |______________________| -- Michael J Pender Jr Box 1942 c/o W.P.I. greyelf@wpi.bitnet 100 Institute Rd. greyelf@wpi.wpi.com Worcester, Ma 01609 I wrote SHELL, please send bug reports to me. P.S. Bruce, if you take the tab characters out and replace them with spaces, your signiature should come out right.