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

  1. Path: sparky!uunet!munnari.oz.au!manuel!sserve!prolix!dac
  2. From: dac@prolix.pub.uu.oz.au (Andrew Clayton)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Fun w/DateStamp
  5. Message-ID: <1b8bb50c.ARN23e8@prolix.pub.uu.oz.au>
  6. Date: Sun, 23 Aug 92 10:24:44 GMT
  7. Reply-To: munnari!labtam!eyrie!prolix!dac
  8. FollowUp-To: comp.sys.amiga.programmer
  9. References: <1992Aug22.190411.1049@CS.ORST.EDU>
  10. Keywords: 
  11. Organization: More like Dis~, really.
  12. Lines: 29
  13.  
  14. In article <1992Aug22.190411.1049@CS.ORST.EDU>, Glade Diviney writes:
  15.  
  16. >   Okay, fellow power users/codes.  For a project I'm working on, I need
  17. >   to deduce the current date.  DateStamp does the trick, of course, but
  18.  
  19. ...
  20.  
  21.    long   timestart, timeend, tottime;    // for time information
  22.  
  23.    timestart = time(×tart);
  24.  
  25.    fprintf(stderr,WELCOME"\n%s",ctime(×tart));
  26.                                 ~~~~~
  27. ...
  28.  
  29. produces 
  30.  
  31. Myjunkywelcomestring
  32. Sun Aug 23 20:26:40 1992
  33.  
  34. This is using SAS/C 5.10a
  35.  
  36. Dac
  37. --
  38. munnari!labtam!eyrie!prolix!dac      David Andrew Clayton.           // _| _  _
  39.   prolix!dac%eyrie@labtam.oz.au      Canberra, Australia           \X/ (_](_](_
  40.         dac@prolix.pub.uu.oz.au      I post .
  41. prolix!dac@sserve.cc.adfa.oz.au            . . I am.             +61 6 290 2215
  42.