home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12560 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.6 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!bionet!uwm.edu!rutgers!cbmvax!jesup
  2. From: jesup@cbmvax.commodore.com (Randell Jesup)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: DateStamp
  5. Message-ID: <34570@cbmvax.commodore.com>
  6. Date: 22 Aug 92 00:04:44 GMT
  7. References: <1992Aug7.220849.2546@jato.jpl.nasa.gov>
  8. Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
  9. Distribution: comp.sys.amiga.programmer
  10. Organization: Commodore, West Chester, PA
  11. Lines: 22
  12.  
  13. jdickson@jato.jpl.nasa.gov (Jeff Dickson) writes:
  14. >
  15. >    The routine DateStamp is a DOS library routine and I need something
  16. >like it from a task. Generally, all DOS library routines are off limits (to
  17. >tasks), but a few are documented as being ok. Is DateStamp ok or is there
  18. >a way to roll your own?
  19.  
  20.     It happens to currently be safe (because we broke people by making it
  21. not safe in 2.00), but it has not been documented as safe.  I would rather
  22. strongly advise against it on general principle.  Think about why you must
  23. have a task instead of a process, etc.  If you need it, it's rather easy to
  24. get from the tv structure: tick = tv_micro/(1000000/TICKS_PER_SECOND) +
  25. (tv_secs % 60) * TICKS_PER_SECOND; minute = (tv_secs/60) % (60*24);
  26. Days = secs/(60*60*24).  You get the tv structure from timer.device GETSYSTIME.
  27.  
  28. -- 
  29. "Rev on the redline, you're on your own; seems like a lifetime, but soon it's
  30.  gone..."  Foreigner
  31. -
  32. Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
  33. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com  BIX: rjesup  
  34. Disclaimer: Nothing I say is anything other than my personal opinion.
  35.