delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/18/04:46:53

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: getdate()
Date: Thu, 16 Apr 1998 23:32:06 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 29
Message-ID: <3536CD36.3BC0@cs.com>
References: <eVzZ.3246$sN3 DOT 526143 AT news21 DOT bellglobal DOT com>
NNTP-Posting-Host: ppp230.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire wrote:
> 
> I notice the function getdate() to obtain the system clock date is in dos.h.
> Something tells me this isn't an ANSI or POSIX header. Is there a
> platform-independent method of obtaining the system clock date???

After checking %DJDIR%/include/time.h, the following functions are
declared as ANSI, along with the associated struct definitions:

char *		asctime(const struct tm *_tptr);
clock_t		clock(void);
char *		ctime(const time_t *_cal);
double		difftime(time_t _t1, time_t _t0);
struct tm *	gmtime(const time_t *_tod);
struct tm *	localtime(const time_t *_tod);
time_t		mktime(struct tm *_tptr);
size_t		strftime(char *_s, size_t _n, const char *_format, 
                         const struct tm *_tptr);
time_t		time(time_t *_tod);

I really hope you can find _something_ in there that will help...

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "To be 'matter of fact' about the    |
|       aka Fighteer I       | world is to blunder into fantasy--   |
|   mailto:fighteer AT cs DOT com   | and dull fantasy at that, as the real|
| http://www.cs.com/fighteer | world is strange and wonderful." -LL |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019