On Wed, Oct 30, 2002, [EMAIL PROTECTED] wrote about "Timezone GMT+2 and Date 
behavior":
> I set the same timezone GMT+2 in three different machines, running the following O/S:

(note that you usually use "XYZ+2", where XYZ is the name you're going to
call the timezone; Calling it "GMT" is valid, but confusing)

> in all the three machines, and suprisingly, the UTC time in Linux and Solaris 8 is 
>two hours MORE then the GMT+2 time.
> The Tru64 results with correct values (UTC time is two hours LESS then the GMT+2 
>time).

The Linux and Solaris behavior you describe is correct.

GMT+2 is two hours west of UTC, i.e., UTC is two hours more than it.
This is exactly what is described in the manual says (see tzset(3)):

   "... The offset string  immediately follows std and specifies the time
    value to be added to the local  time to get Coordinated Universal Time
    (UTC). The offset is positive if the local time zone is west of the Prime
    Meridian and negative if it is east."

This is the way I always remember it being it on UNIX; West of England (e.g.,
the USA) was positive offsets, east (e.g., Israel) was negative.

If you were looking for Israeli time, you meant to use "GMT-2", not GMT+2.

I don't know why Tru64 gave you the opposite behavior...


-- 
Nadav Har'El                        |  Wednesday, Oct 30 2002, 24 Heshvan 5763
[EMAIL PROTECTED]             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |He who has more is not happier than he
http://nadav.harel.org.il           |who wants less.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to