Operating System - HP-UX
1748145 Members
3547 Online
108758 Solutions
New Discussion юеВ

Re: How to configure timezone for Brazil

 
Alzenir Silva
Occasional Contributor

How to configure timezone for Brazil

Dear,

How Do I configure timezone for Brazil, Brasilia?

I use:

a)# more /etc/TIMEZONE
TZ=SAT3 (I don┬┤t know)
export TZ

b) # date
Tue Oct 3 15:47:36 SAT 2006

c) /etc/profile
. /etc/TIMEZONE
else
TZ=MST7MDT # change this for local time.
export TZ
fi

I have not sure about TZ=MST7MDT
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: How to configure timezone for Brazil

This is a good document that you should read carefully:

http://avi.alkalay.net/linux/docs/TimePrecision/TimePrecision.html
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
OldSchool
Honored Contributor

Re: How to configure timezone for Brazil

this might shed some light as well


lib.seven.com.br/ampliar.asp?codartigo=693
Jannik
Honored Contributor

Re: How to configure timezone for Brazil

use:
set_parms timezone

and you should choose central/america it is -3 i think.
jaton
Alzenir Silva
Occasional Contributor

Re: How to configure timezone for Brazil

Thank you, everybody

I want know if the files /etc/profile and /etc/TIMEZONE is correct. where is The SAT parameter configured?

Bill Hassell
Honored Contributor

Re: How to configure timezone for Brazil

The link:

http://lib.seven.com.br/ampliar.asp?codartigo=693

refers to the file /usr/lib/tztab. You can edit this file to add any new timezones and/or change the timezone values. In the above example, the entry looks like this:

BRA3VER
0 1 14 10 2001 0-6 VER2
0 23 16 02 2002 0-6 BRA3

But you could just as easily change it to:

SAT3SDT2
0 1 14 10 2001 0-6 SDT2
0 23 16 02 2002 0-6 SAT3

The 3-letter codes are just simple strings with the number (2 or 3) referring to the offset from GMT (UTC) time. However, the example is not quite correct and I haven't found the descriptive rule for Brasalia. I can find the timezone and the current time, even a chart that shows past and future daylight saving changes. But to correct the example, you'll need to define the rule such as the 3rd Saturday in March or 1st Sunday in November.

The above example (silently) fails because there is only a single year listed. The rules apply for a range of years as you can see in the other timezones.


Bill Hassell, sysadmin