No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FAQ-How to Query the Time Zone of Each Country

Publication Date:  2012-07-25 Views:  27 Downloads:  0
Issue Description

Q:

Time zone settings of OS need to be changed after an NMS is installed. The time zone settings cannot be changed if the time zone of a local country is unknown. Then, how to query the time zone of a local country? 
Alarm Information
N/A
Handling Process
A:

1. Run the tzselect command as user root:

# tzselect

Please identify a location so that time zone rules can be set correctly.

Please select a continent or ocean.

 1) Africa

 2) Americas

 3) Antarctica

 4) Arctic Ocean

 5) Asia

 6) Atlantic Ocean

 7) Australia

 8) Europe

 9) Indian Ocean

10) Pacific Ocean

11) none - I want to specify the time zone using the POSIX TZ format.

2. Select the continent or region based on the country where the server resides. Here select 2 (Americas) as an example.

#? 2

Please select a country or region.

 1) Anguilla                     14) Costa Rica                   27) Honduras                     40) St Lucia

 2) Antigua & Barbuda            15) Cuba                         28) Jamaica                      41) St Martin (French part)

 3) Argentina                    16) Dominica                     29) Martinique                   42) St Pierre & Miquelon

 4) Aruba                        17) Dominican Republic           30) Mexico                       43) St Vincent

 5) Bahamas                      18) Ecuador                      31) Montserrat                   44) Suriname

 6) Barbados                     19) El Salvador                  32) Netherlands Antilles         45) Trinidad & Tobago

 7) Belize                       20) French Guiana                33) Nicaragua                    46) Turks & Caicos Is

 8) Bolivia                      21) Greenland                    34) Panama                       47) United States

 9) Brazil                       22) Grenada                      35) Paraguay                     48) Uruguay

10) Canada                       23) Guadeloupe                   36) Peru                         49) Venezuela

11) Cayman Islands               24) Guatemala                    37) Puerto Rico                  50) Virgin Islands (UK)

12) Chile                        25) Guyana                       38) St Barthelemy                51) Virgin Islands (US)

13) Colombia                     26) Haiti                        39) St Kitts & Nevis

3. Select the country. Here selects 36 (Peru) as an example.

#? 36

The following information has been given:

        Peru

Therefore TZ='America/Lima' will be used.

Local time is now:       Thu Aug 26 17:37:35 PET 2010

Universal Time is now:   Thu Aug 26 22:37:35 UTC 2010

Is the above information OK?

1) Yes

2) No

#? 1

Here is the TZ value again, this time on standard output:

America/Lima

Then, you can know the time zone of a country. 
Root Cause
The Solaris OS provides commands for querying the time zone of a country.
Suggestions
N/A

END