Operating System - Tru64 Unix
1752861 Members
4448 Online
108790 Solutions
New Discussion юеВ

Changing the TimeZone

 
Slayer Slayer
Frequent Advisor

Changing the TimeZone

Hello All,

Next week i will have to change the TimeZone in our Tru64 4.0G.
I need to put in hour ahead.
How do i do that ?


TIA

Regards

Bruno
3 REPLIES 3
Victor Semaska_3
Esteemed Contributor

Re: Changing the TimeZone

If you set it up properly when you installed the OS, it should change automatically for you.

To see which timezone you have selected on your system:

# ls -l /etc/zoneinfo/localtime

It should be a symbolic link to the appropriate zone.

I live in the Northeastern US so for my system it's:

localtime -> ./US/Eastern

For you, it should be something like:

localtime -> ./Brazil/Acre|DeNoronha|East|West

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
Slayer Slayer
Frequent Advisor

Re: Changing the TimeZone

Hey man thanks for the response.

But let├В┬┤s suppose, the last admim that was here did not set up the OS properly.

How do i know if the OS will do that automatically.
If the Timezone does not change automamtically how do i set up it Manually ?


Thanks a lot

Regards

Brun
Han Pilmeyer
Esteemed Contributor

Re: Changing the TimeZone

What Vic described above tells you what the system wide default for the timezone is. There are ways to override this, even on a per process basis (e.g. using the TZ environment variable).

If you're afraid that the timezone defined by the operating system is not correct or you'd just like to see what the definition is, then the sources for the timezone definitions can be found in /etc/zoneinfo/sources.

You could customize those if you desire (see the "zic" command), but that should not be necessary.

Also see man pages like: zoneinfo, tzset, zic, etc.