Mail Archives: djgpp/1998/04/06/00:33:25
| From: | me AT home DOT net
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | GMT Time
|
| Date: | Sun, 05 Apr 1998 22:58:47 -0500
|
| Organization: | AT&T WorldNet Services
|
| Lines: | 15
|
| Message-ID: | <6g9jrk$av5@bgtnsc02.worldnet.att.net>
|
| NNTP-Posting-Host: | 12.65.196.27
|
| Mime-Version: | 1.0
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Question?
when I use the "gmt = *gmtime(&t)" function the time still comes out in
local time. I've even tried changing "t.tm_gmtoff" and that still
doesn't work. Example code:
var:
time_t rawt;
struct tm t;
rawt = time(NULL);
t = *gmtime(&rawt);
N E help is appreciated.
- Raw text -