- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Brazil Timezone
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 03:54 AM
10-27-2006 03:54 AM
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 04:16 AM
10-27-2006 04:16 AM
Re: Brazil Timezone
While I don't live in Brazil, it shouldn't be difficult to establish a custom setting by editting '/usr/lib/tztab'. There is nothing special about doing this. Create your entries according the the 'tzlib(4)' manpages. There are quite a few sites that document current times around the world. One is:
http://www.weltzeituhr.com/laender/zeitzonen_e.shtml
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 05:38 AM
10-27-2006 05:38 AM
Re: Brazil Timezone
Brazil does not set a certain weekend of the year for time change, you will need to perform this manually. I don't manage those servers anymore to be able to say what entries are in tztab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 11:18 AM
10-27-2006 11:18 AM
Solutionhttp://www.timezoneconverter.com/cgi-bin/zonehelp.tzc?cc=BR&ccdesc=Brazil
From this chart, there appears to be 4 timezones with cities such as Sao Paulo observing daylight saving, most others do not. So the answer requires that you determine the rules for your location. If daylight saving is not observed, your task is trivial. The man page for environ covers the TZ variable. Let's suppose that you are located Eirunepe which is 5 hours behind GMT and observes no daylight saving. You would edit the file /etc/TIMEZONE to read TZ=EIR5 then login and the date command will show GMT 5 hours behind GMT.
However, that may not be your local time because when your system was setup, some other TZ value was in effect and that value would be translated to GMT incorrectly. HP-UX keeps time only in GMT and the standard Unix libraries translate GMT into local time based on TZ. So verify that date -u shows the correct GMT time. NOTE: if you have to change the time so that date -u is correct, be sure to reboot so all applications and kernel programs see the new time.
Once date -u is correct, now you can use the proper offset. Note that EIR5 is just a suggestion. As mentioned in the man page for environ, you can use 3 or more characters such as TZ=BRAZILEAST5 and get the same results. You can even use your own name: TZ=JOHN5 (not recommended). All this refers to locations in Brazil that do NOT observe any time change for daylight saving.
Now for tztab, you need to know the rules for change. How is the date determined? Is it the Sunday that falls on the 3rd week of April? Or is it the 21st day of November? You need the two rules (move forward and move back) which you can then translate in your own tztab entry. To help test your entries, I have attached Clay's Perl test script that will show you when daylight saving changes given any year based on a selected entry in tztab.
Or you can take the easy way out: Change TZ to the new offset the evening before the time change. For instance, if you are located in Sao Paulo, the offset is currently 2 hours so TZ might be set to SAO2. When the changeover occurs, you just change the TIMEZONE file to SAO3 and every new login will see the new time. HOWEVER, your applications have their TZ value stored in RAM so you either restart every application (too complicated) or reboot and everything will see the new time.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2006 09:00 PM
11-10-2006 09:00 PM
Re: Brazil Timezone
I'm in late, the Brazilan changed last week.
Our systems host European and Brazilian (Sao Paulo) applications.
The systems run with the standard HP-UX TZTAB and time zone METDST.
For Brazilian we add a new entry in tztab and exported in users profile TZ=BEDT3BEST.
We ran through daylight change without any problem.
Here the entry in TZTAB, it is already configured for the next time switch in Febbruary.
BEDT3BEST
0 1 1-7 11 2006 0 BEST2
0 23 23 2 2007 0-6 BEDT3
Regards
Gianni