home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / hypercar / 4652 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.4 KB  |  41 lines

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