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