home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!alberta!trlabs!agt!news
- From: Allen Winter <AWINTER1@agt.ab.ca>
- Subject: Re: Help! I need the time in my stack
- Message-ID: <1992Dec22.185709.25579@agt.uucp>
- X-Xxdate: Tue, 22 Dec 92 11:35:49 GMT
- Sender: news@agt.uucp
- Nntp-Posting-Host: 128.9.32.10
- Organization: AGT Ltd
- X-Useragent: Nuntius v1.1.1d9
- References: <92356.01033234A6J53@CMUVM.CSV.CMICH.EDU>
- Date: Tue, 22 Dec 92 18:57:09 GMT
- Lines: 26
-
- In article <92356.01033234A6J53@CMUVM.CSV.CMICH.EDU> CHUCK WILLIAMS,
- 34A6J53@CMUVM.CSV.CMICH.EDU writes:
- >of the system users in the lab where I work. To do this I want
- >to grab the mac's time and input it when the person logs on; I also
- >would like to increment the time and make an alarm when the user
-
- Yes, this is very straightforward. Some following sample statements are
- shown below:
-
- put the abbr date into theDate
- convert theDate to seconds -- the answer goes into theDate
- put theDate + 24*60*60 into theDate
- convert theDate to abbrev date
- convert theDate to dateItems
-
- get the time
- get the short time
- get the long time
- convert the long time to dateItems -- a comma separated list of 7
- items;
-
- Items 4, 5, 6 are hours; min; sec respectively.
-
- Allen Winter;
- AGT Ltd; R&D; Edmonton, Alberta
- AWINTER1@agt.ab.ca
-