wiki:docs/vl7/cui-guide/TimeZone

Version 3 (modified by yasumichi, 11 years ago) (diff)

--

Vine Linux ドキュメント / Vine Linux 7.x / CUI ユーザーズガイド / タイムゾーン・時刻の設定

タイムゾーン・時刻の設定

システムのタイムゾーンの設定

システムのタイムゾーンに関する情報は、/etc/localtime に保存されています。これは、バイナリファイルであり、直接編集することはできません。

システムのタイムゾーンを変更したい場合は、/usr/share/zoneinfo から、タイムゾーンに適合したファイルを /etc/localtime にコピーします。インストール時にアジア/東京を設定した場合は、/usr/share/zoneinfo/Asia/Tokyo や /usr/share/zoneinfo/Japan と同等のファイルになっているはずです。

タイムゾーンを変更する際にどのファイルを元にすべきかは、tzselect コマンドを利用すると便利です。例えば、ロサンゼルスに在住の場合を例に説明します。

$ 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.
#? 

tzselect を実行すると上記のように 1 から 10 までの地域が表示されます。ここでは、Americas を選択しますので 2 と入力して Enter キーを押します。

Please select a country.
 1) Anguilla			   28) Haiti
 2) Antigua & Barbuda		   29) Honduras
 3) Argentina			   30) Jamaica
 4) Aruba			   31) Martinique
 5) Bahamas			   32) Mexico
 6) Barbados			   33) Montserrat
 7) Belize			   34) Nicaragua
 8) Bolivia			   35) Panama
 9) Bonaire Sint Eustatius & Saba  36) Paraguay
10) Brazil			   37) Peru
11) Canada			   38) Puerto Rico
12) Cayman Islands		   39) Sint Maarten
13) Chile			   40) St Barthelemy
14) Colombia			   41) St Kitts & Nevis
15) Costa Rica			   42) St Lucia
16) Cuba			   43) St Martin (French part)
17) Curacao			   44) St Pierre & Miquelon
18) Dominica			   45) St Vincent
19) Dominican Republic		   46) Suriname
20) Ecuador			   47) Trinidad & Tobago
21) El Salvador			   48) Turks & Caicos Is
22) French Guiana		   49) United States
23) Greenland			   50) Uruguay
24) Grenada			   51) Venezuela
25) Guadeloupe			   52) Virgin Islands (UK)
26) Guatemala			   53) Virgin Islands (US)
27) Guyana
#? 

続いて国名の選択肢が表示されました。ここでは、United States を選択しますので 49 と入力して Enter キーを押します。

Please select one of the following time zone regions.
 1) Eastern Time
 2) Eastern Time - Michigan - most locations
 3) Eastern Time - Kentucky - Louisville area
 4) Eastern Time - Kentucky - Wayne County
 5) Eastern Time - Indiana - most locations
 6) Eastern Time - Indiana - Daviess, Dubois, Knox & Martin Counties
 7) Eastern Time - Indiana - Pulaski County
 8) Eastern Time - Indiana - Crawford County
 9) Eastern Time - Indiana - Pike County
10) Eastern Time - Indiana - Switzerland County
11) Central Time
12) Central Time - Indiana - Perry County
13) Central Time - Indiana - Starke County
14) Central Time - Michigan - Dickinson, Gogebic, Iron & Menominee Counties
15) Central Time - North Dakota - Oliver County
16) Central Time - North Dakota - Morton County (except Mandan area)
17) Central Time - North Dakota - Mercer County
18) Mountain Time
19) Mountain Time - south Idaho & east Oregon
20) Mountain Time - Navajo
21) Mountain Standard Time - Arizona
22) Pacific Time
23) Alaska Time
24) Alaska Time - Alaska panhandle
25) Alaska Time - southeast Alaska panhandle
26) Alaska Time - Alaska panhandle neck
27) Alaska Time - west Alaska
28) Aleutian Islands
29) Metlakatla Time - Annette Island
30) Hawaii
#? 

更に地域の選択肢が表示されました。ここでは、Pacific Time (太平洋時間) を選択しますので 22 と入力して Enter キーを押します。

The following information has been given:

	United States
	Pacific Time

Therefore TZ='America/Los_Angeles' will be used.
Local time is now:	2013年  8月 30日 金曜日 23:52:07 PDT.
Universal Time is now:	2013年  8月 31日 土曜日 06:52:07 UTC.
Is the above information OK?
1) Yes
2) No
#?