1825762 Members
2070 Online
109687 Solutions
New Discussion

tztab for cairo/egypt

 
Sherief Helmy
New Member

tztab for cairo/egypt

Hi experts
I need to modify tztab for winter time changes in egypt, egypt rule for winter time are as follows:
At midnight (Thursday to Friday night) change clock from 12 AM to 11 PM. The next change will be at next 28th of august (Thursday night) going to 29th (Friday). The line that I'll use looks like this:

0 23 28 8 2008 4 EGT-2

The question is this configuration correct? I'm afraid there could be something wrong because the dates will be different, i.e when the clock reaches 12:0 am at 29th change the zone to EGT-2 which is 28th 11:0 PM.

Br
SHelmy

#Egypt for Nokia
EGT-2EGTDST
0 1 24-30 4 2004-2038 5 EGTDST-3
0 23 24-30 9 2004-2006 4 EGT-2
0 23 6 9 2007 4 EGT-2
0 23 28 8 2008 4 EGT-2
0 23 24-30 9 2004-2038 4 EGT-2
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: tztab for cairo/egypt

See my comments here about undocumented rules and Clay's dst.pl script to check out your entry:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1239468

0 23 6 9 2007 4 EGT-2
0 23 28 8 2008 4 EGT-2

These violate undocumented rule #1.

0 23 24-30 9 2004-2038 4 EGT-2

This shouldn't overlap with above two rules and the 2004-2006 rule.

So using this:
EGT-2EGTDST
00 01 24-30 4 2004-2038 5 EGTDST-3
00 23 24-30 9 2004-2006 4 EGT-2
00 23 01-07 9 2007 4 EGT-2
00 23 24-30 8 2008 4 EGT-2
00 23 24-30 9 2009-2038 4 EGT-2

Gets this:
$ TZ=EGT-2EGTDST dst.pl
Thu Apr 24 23:59:59 EGT 2008 --> Fri Apr 25 01:00:00 EGTDST 2008
Thu Aug 28 23:59:59 EGTDST 2008 --> Thu Aug 28 23:00:00 EGT 2008
Sherief Helmy
New Member

Re: tztab for cairo/egypt

theanks for the advice and the dst.pl tool
Dennis Handly
Acclaimed Contributor

Re: tztab for cairo/egypt

>thanks for the advice and the dst.pl tool

If you are happy with the answers you were given please read the following about assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33
You can open threads by:
http://forums.itrc.hp.com/service/forums/helptips.do?#41