home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!labtam!eyrie!werple!mbear!monster
- From: monster@mbear.pub.uu.oz.au (Martin Ozolins)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Fun w/DateStamp
- Message-ID: <monster.04p3@mbear.pub.uu.oz.au>
- Date: 26 Aug 92 02:51:06 GMT
- Organization: Bears Incorporated
- Lines: 28
- X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith
-
- In article <1992Aug22.190411.1049@CS.ORST.EDU> divineg@prism.CS.ORST.EDU (Glade Diviney) writes:
- >
- > Okay, fellow power users/codes. For a project I'm working on, I need
- > to deduce the current date. DateStamp does the trick, of course, but
- > how useful is the number of days since Jan. 1, 1978??? Does anyone know
- > of a function or #define in the .h files somewhere that translates this
- > cryptic "internal format" into something humans use?
- >
- > (P.S. I would've written a translation table myself, but I couldn't remember
- > whether leap years don't happen every 200 or every 400 years. Anyway,
- > I shouldn't have to!)
-
- After calling DateStamp, you need to call DateToStr
-
- In asm, d1 = DateSTamp structure
- CALL DateStamp
-
- d1 = DateStamp structure
- CALL DateToStr
-
- it works for me
-
- --
-
- Martin Ozolins :Internet monster@mbear.pub.uu.oz.au
- Victoria :FIDO 3:633/359.6
- Australia :AMIGANET 41:300/359.6
- :TRINET 42:8699/8.6
-