[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] [ANNOUNCE:] leafnode-1.9.12
On Sat, Apr 01, 2000 at 06:04:12PM -0500, Curly wrote:
I apologize if I mess things up again. But I think you're wrong.
> Here's your test program with the changes inserted:
> char *zone = getenv("TZ" ); // save current offset
This is clearly non-portable. TZ isn't set here, and I would never
rely on any environment variable, esp. if your program runs as a
system user (news in this case).
> > age = mktime( &timearray ) - ltime->tm_gmtoff;
mktime -- at least on my glibc-2.1.2 Linux system -- sets the
external variable tzname correctly (to EST in my case).
What we need to have answered are the following questions:
- Does time( NULL ) return seconds since the epoch in local time?
(Yes according to MA)
- Is tm_gmtoff "time(NULL, UTC) - time(NULL, local time)" or vice
- Same question for timezone.
- Are the answers of the two previous questions the same east
and west of GMT?
Fortune cookie of the day:
We have DIFFERENT amounts of HAIR --
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list