Subject: Re: time functions questions
To: None <Scott.Burns@Netcontech.Com>
From: Johan Danielsson <>
List: tech-userlevel
Date: 11/02/2000 18:00:01
Scott Burns <Scott.Burns@Netcontech.Com> writes:

> Is the a correct usage of mktime() is my one question (ie shoving in
> a localtime composed tm struct, and then reapplying gmtime() to it ?

Yes. I would probably set tm_isdst to -1 to be on the safe side.

> Why does the timezone print as EST on printf() number 2 and 4 ?
> Should a call to gmtime() not force the timezone to GMT ?

Because it outputs your machine zone name. It *maybe* should use
tm_zone if non-null, but it might not always be correct. And you can't
(for your own programs) assume that there's a tm_zone field in struct