Operating System - HP-UX
1833764 Members
2326 Online
110063 Solutions
New Discussion

Africa/Cairo timezone is missing

 
Vladislav_1
New Member

Africa/Cairo timezone is missing

Hello,
I was looking for Egypt timezone abbreviation
and found that there is no such entry
in /usr/lib/tztab .
How should I configure it? It should have
offset of 2 hours and day time saving...
Thanks for any ideas!

8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: Africa/Cairo timezone is missing

Wouldn't MET-1 should work for you?


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Africa/Cairo timezone is missing

On re-reading that, I don't think it would. Disregard.


Pete

Pete
Vladislav_1
New Member

Re: Africa/Cairo timezone is missing

They have 2 hours offset normally,
also they change it to 3 hours in summer.
Very close to Egypt is EET (finnish),
but dates of resetting to/from day light saving differ. I thought it would be something
standard as on many other systems (SUN, M$,..)
Pete Randall
Outstanding Contributor

Re: Africa/Cairo timezone is missing

Yeah, I was looking at the Finnish one, too. Would that serve as a model for you to make your own entry?

Pete

Pete
Steve Steel
Honored Contributor

Re: Africa/Cairo timezone is missing

Hi

I looked on the net and indeed HP seems to be one of the only non covers.

You would need to

1: Add these lines to /usr/lib/tztab :
|
| # Egyptian Time, Egyptian Daylight Savings Time
| EGT-2EGTDST
| 0 0 28-30 4 2000-2038 0 EGTDST-3
| 0 0 29-30 9 2000-2038 0 EGT-2
|
|

2: Change /etc/TIMEZONE to this :
|
| TZ=EGT-2EGTDST
| export TZ
|
|

3: Command ". /etc/TIMEZONE"
|
|

4: Use "date" to check the result.


Steve Steel

"The greatest mistake you can make in life is to be continually fearing you will make one."
-- Elbert Hubbard, 1856-1915
If you want truly to understand something, try to change it. (Kurt Lewin)
Vladislav_1
New Member

Re: Africa/Cairo timezone is missing

Thanks a lot!
My guess about missing this entry on HP
was correct... :(
It will be done by hand
Zeev Schultz
Honored Contributor

Re: Africa/Cairo timezone is missing

Privet,Vladislav.
You can try to define it yourself,like I do for Israel Standard Time.I beleive Egypt is
:

1. Add something like the following entry to /usr/lib/tztab:

# Israel Standard Time is 2 hours ahead of GMT. IDT=Israel Daylight saving
Time.
IST-2IDT
0 1 29 03 2002-2002 0-6 IDT-3 # According to the date of the summer clock.
0 0 07 10 2002-2002 0-6 IST-2 # # According to return date of the winter

2. Edit /etc/TIMEZONE as follows (if not already):
TZ=IST-2IDT
export TZ

3. Make sure that: /sbin/date -u produces the correct Greenwich Mean Time
(In the summer it's 3 hours below us: when it's 12:00 here, it's 9:00 there). Otherwise, set it using /sbin/date -u ...
So computers don't think yet. At least not chess computers. - Seymour Cray
Cheryl Griffin
Honored Contributor

Re: Africa/Cairo timezone is missing

If you're tracking this, it's SR #8606152311. There's no patch yet, but the fix documented above is the correct tztab entry.
Cheryl
"Downtime is a Crime."