1830616 Members
2620 Online
110015 Solutions
New Discussion

Re: Daily Summer Time

 

Daily Summer Time

Hi People,

Which parameters can I set in /usr/lib/tztab to configure Daily Summer Time to TZ=SAT3. I'm in Brazil.

thanks
4 REPLIES 4
Andy Monks
Honored Contributor

Re: Daily Summer Time

Does Brazil change to summertime or do you just keep the same time all year.

If so, you don't need anything in tztab. You just set /etc/TIMEZONE to SAT3

Re: Daily Summer Time

Hi Andy

Brazil changes to summertime every year.
Can you help me ???

thanks
Andy Monks
Honored Contributor

Re: Daily Summer Time

Didn't think it did. Oh well.

Ok, it's not to hard, you just need to know certain things about when Brazil changes (most countries have rules about when then do it).

You basically need 3 lines in the file.

1st : This will be what you call your timezone. So, in the US it's usually EST/EDT (eastern standard and eastern daylight (meaning summer time)). So something like SAT3SDT

2. The comes the rules for changing from one to the other.

The man page for tztab explains all the fields, but for an example if, you change from Summer to Winter time at 2am on the last sunday of October you would have :-

0 3 25-31 10 2001-2038 0 SAT3

Then to change to Summer time from Winter time at the last week of march you'd do :-

0 1 25-31 3 2001-2038 0 SDT2

One thing to remember, is that the moment you change the file, anyone with the TZ set to what you define will have there time changed. So, while experimenting, create a TZ with a silly name.

Also, it's probably worth logging a call with you local HP support centre to get a service request raised for HP to have it added into the tztab file.

Also maybe that's what AST4ADT does?

Re: Daily Summer Time

Ok Andy ...

I'll test it.

[]'s