TBLinux:Changing the Time Zone

From TBwiki
(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
 
[root@TB005375 ]# tzselect<br>
 
[root@TB005375 ]# tzselect<br>
 
Please identify a location so that time zone rules can be set correctly.<br>
 
Please identify a location so that time zone rules can be set correctly.<br>
Please select a continent
+
Please select a continent<br>
1) Africa
+
1) Africa<br>
2) Americas
+
2) Americas<br>
 
<br>
 
<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
10) None - I want to specify the time zone using the Posix TZ format.
+
10) None - I want to specify the time zone using the Posix TZ format.<br>
#? 2
+
#? 2<br>
Please select a country.
+
Please select a country.<br>
1) Anguilla
+
1) Anguilla<br>
 
<br>
 
<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
10) Canada
+
10) Canada<br>
 
<br>
 
<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
51) Virgin Islands (US)
+
51) Virgin Islands (US)<br>
#? 10
+
#? 10<br>
Please select one of the time zone regions.
+
Please select one of the time zone regions.<br>
1) Newfoundland Time, including SE Labrador
+
1) Newfoundland Time, including SE Labrador<br>
 
<br>
 
<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
7) Eastern Time - Quebec - most locations
+
7) Eastern Time - Quebec - most locations<br>
 
<br>
 
<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
 
.<br>
27) Pacific Time - north Yukon
+
27) Pacific Time - north Yukon<br>
#? 7
+
#? 7<br>
The following information has been given:
+
The following information has been given:<br>
Canada
+
Canada<br>
Eastern Time - Quebec - most locations
+
Eastern Time - Quebec - most locations<br>
+
<br>
Therefore TZ= ‘America/Montreal’ will be used.
+
Therefore TZ= ‘America/Montreal’ will be used.<br>
Local time is now: Wed Aug 19 08:49:01 EDT 2009.
+
Local time is now: Wed Aug 19 08:49:01 EDT 2009.<br>
Universal time is now: Wed Aug 19 08:49:01 UDT 2009.
+
Universal time is now: Wed Aug 19 08:49:01 UDT 2009.<br>
Is the above information OK?
+
Is the above information OK?<br>
1) Yes
+
1) Yes<br>
2) No
+
2) No<br>
#? 1
+
#? 1<br>
+
<br>
You can make this change permanent for yourself by appending the line
+
You can make this change permanent for yourself by appending the line<br>
TZ= ‘America/Montreal’; export TZ
+
&nbsp &nbspTZ= ‘America/Montreal’; export TZ<br>
to the file ‘.profile’ in your home directory; then log out and log in again.
+
to the file ‘.profile’ in your home directory; then log out and log in again.<br>
+
<br>
Here is the TZ value again, this time on standard output so that you
+
Here is the TZ value again, this time on standard output so that you<br>
can use the /usr/bin/tzselect command in the shell script
+
can use the /usr/bin/tzselect command in the shell script<br>
America/Montreal
+
America/Montreal<br>
[root@TB005373 ]#
+
[root@TB005373 ]#<br>
 
+
 
</code>
 
</code>
 
|}
 
|}

Revision as of 10:57, 6 July 2010

The time zone of the TMG3200 is configured on the Linux host using the tzselect command. The following is provided as a sample of how to configure a time zone:

[root@TB005375 ]# tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent
1) Africa
2) Americas

.
.
.
10) None - I want to specify the time zone using the Posix TZ format.

  1. ? 2

Please select a country.
1) Anguilla

.
.
.
10) Canada

.
.
.
51) Virgin Islands (US)

  1. ? 10

Please select one of the time zone regions.
1) Newfoundland Time, including SE Labrador

.
.
.
7) Eastern Time - Quebec - most locations

.
.
.
27) Pacific Time - north Yukon

  1. ? 7

The following information has been given:
Canada
Eastern Time - Quebec - most locations

Therefore TZ= ‘America/Montreal’ will be used.
Local time is now: Wed Aug 19 08:49:01 EDT 2009.
Universal time is now: Wed Aug 19 08:49:01 UDT 2009.
Is the above information OK?
1) Yes
2) No

  1. ? 1


You can make this change permanent for yourself by appending the line

&nbsp &nbspTZ= ‘America/Montreal’; export TZ

to the file ‘.profile’ in your home directory; then log out and log in again.

Here is the TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in the shell script
America/Montreal
[root@TB005373 ]#

Personal tools