home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!manuel!sserve!prolix!dac
- From: dac@prolix.pub.uu.oz.au (Andrew Clayton)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Fun w/DateStamp
- Message-ID: <1b8bb50c.ARN23e8@prolix.pub.uu.oz.au>
- Date: Sun, 23 Aug 92 10:24:44 GMT
- Reply-To: munnari!labtam!eyrie!prolix!dac
- FollowUp-To: comp.sys.amiga.programmer
- References: <1992Aug22.190411.1049@CS.ORST.EDU>
- Keywords:
- Organization: More like Dis~, really.
- Lines: 29
-
- In article <1992Aug22.190411.1049@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
-
- ...
-
- long timestart, timeend, tottime; // for time information
-
- timestart = time(×tart);
-
- fprintf(stderr,WELCOME"\n%s",ctime(×tart));
- ~~~~~
- ...
-
- produces
-
- Myjunkywelcomestring
- Sun Aug 23 20:26:40 1992
-
- This is using SAS/C 5.10a
-
- Dac
- --
- munnari!labtam!eyrie!prolix!dac David Andrew Clayton. // _| _ _
- prolix!dac%eyrie@labtam.oz.au Canberra, Australia \X/ (_](_](_
- dac@prolix.pub.uu.oz.au I post .
- prolix!dac@sserve.cc.adfa.oz.au . . I am. +61 6 290 2215
-