[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] [ANNOUNCE:] leafnode-1.9.12



On Sat, 2000-04-01 2000  20:03 -0500
  Joerg Dietrich <joerg@xxxxxxxxxxxx> wrote:
[...]
> - Does time( NULL ) return seconds since the epoch in local time?
>   (Yes according to MA)

No. Epoch is 00:00:00 UTC, January 1, 1970, and time returns number of
seconds since it. (time(NULL)/3600)%24 always returns hour in UTC.

> - Is tm_gmtoff "time(NULL, UTC) - time(NULL, local time)" or vice
>   versa?

It is localtime-gmttime.

> - Same question for timezone.

No there is something weird with timezone. 
On my Linux box I have:

Winter:
localtime-gmtime=3600
timezone=-3600
daylight=1

Summer:
localtime-gmtime=7200
timezone=-3600
daylight=1

> - Are the answers of the two previous questions the same east
>   and west of GMT?

Apparently yes.

-- 
Darth Vader sleeps with a Teddywookie.                        Rados&lstrok;aw Gancarz
                                                             r_g@priv2,onet,pl

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list