home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15567 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.6 KB

  1. Path: sparky!uunet!psinntp!newsserver.pixel.kodak.com!laidbak!obdient!amiserv!amiganet!skelly
  2. From: skelly@amiganet.chi.il.us (Sean Kelly)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Date?????
  5. Message-ID: <skelly.0e4v@amiganet.chi.il.us>
  6. Date: 9 Nov 92 09:08:35 GMT
  7. Organization: Amiga Network Information Systems
  8. Lines: 23
  9.  
  10.  
  11.  
  12.  
  13.  
  14.        This is probably a pretty simple question, but since I have only been
  15. programming on my Amiga in C for about 3 months, it's got me stumped!!  I am
  16. trying to get the current date for a program I am writing, but the only thing I
  17. have found that does that is the DateStamp() thing which, if you ask me, is
  18. absolutely ridiculous!  I mean why should my program have to figure out how
  19. many days have passed since january 1978????  I bought my SAS C5.10b used
  20. without ANY docs so the only reference I have is the 5 books I bought none of
  21. which offer any help on this subject.  Is there some command that I am missing
  22. that will read the date into a string in the normal ("01/01/92") format??  If
  23. not, does someone have a small piece of code that will translate the number of
  24. days since '78 to the current date???  I mean how do you work around leap year
  25. and stuff?  Any help would be greatly appreciated...
  26.  
  27. %^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%
  28. %   Sean Kelly - Sysop Amizon BBS (312)594-1146                         %
  29. %   Always looking for classic video games for the following systems:   %
  30. %                                                                       %
  31. %  Atari 2600-Atari 5200-ColecoVision-Atari 5200-Intellivision-Vectrex  %
  32. %^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%^%
  33.