Mail Archives: djgpp/1998/04/18/04:46:53
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 -