Mail Archives: djgpp/1998/04/17/02:46:32
Paul Derbyshire wrote:
>
> Didn't you just get through saying it wasn't ANSI??? *confused* If it is why is
> it in "dos.h"? *even more confused*
Remind me to concentrate on a single problem at a time. :-)
The function you want is gmtime(), which returns a struct tm. Syntax
example:
time_t x;
struct tm *t;
time(&x);
t = gmtime(&t);
Note also localtime(), which converts for time zones. Both of these are
in the ANSI portion of time.h. Did you see my second reply to your
question?
--
---------------------------------------------------------------------
| 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 -