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