home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12839 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.3 KB

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