Changes between Version 3 and Version 4 of docs/vl7/cui-guide/TimeZone


Ignore:
Timestamp:
2013/09/01 06:42:42 (11 years ago)
Author:
yasumichi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • docs/vl7/cui-guide/TimeZone

    v3 v4  
    99システムのタイムゾーンを変更したい場合は、/usr/share/zoneinfo から、タイムゾーンに適合したファイルを /etc/localtime にコピーします。インストール時にアジア/東京を設定した場合は、/usr/share/zoneinfo/Asia/Tokyo や /usr/share/zoneinfo/Japan と同等のファイルになっているはずです。 
    1010 
    11 タイムゾーンを変更する際にどのファイルを元にすべきかは、tzselect コマンドを利用すると便利です。例えば、ロサンゼルスに在住の場合を例に説明します。 
     11この場合、date コマンドにより時刻を表示した際に最後に日本標準時を表す JST が表示されます。 
    1212 
    1313{{{ 
    14 $ tzselect 
    15 Please identify a location so that time zone rules can be set correctly. 
    16 Please select a continent or ocean. 
    17  1) Africa 
    18  2) Americas 
    19  3) Antarctica 
    20  4) Arctic Ocean 
    21  5) Asia 
    22  6) Atlantic Ocean 
    23  7) Australia 
    24  8) Europe 
    25  9) Indian Ocean 
    26 10) Pacific Ocean 
    27 11) none - I want to specify the time zone using the Posix TZ format. 
    28 #?  
     14#!sh 
     15$ date 
     162013年  9月  1日 日曜日 06:27:08 JST 
    2917}}} 
    3018 
    31 tzselect を実行すると上記のように 1 から 10 までの地域が表示されます。ここでは、Americas を選択しますので 2 と入力して Enter キーを押します。 
     19例えば、アメリカ合衆国の太平洋時間に合わせたい場合は、次のようにします。 
    3220 
    3321{{{ 
    34 Please select a country. 
    35  1) Anguilla                       28) Haiti 
    36  2) Antigua & Barbuda              29) Honduras 
    37  3) Argentina                      30) Jamaica 
    38  4) Aruba                          31) Martinique 
    39  5) Bahamas                        32) Mexico 
    40  6) Barbados                       33) Montserrat 
    41  7) Belize                         34) Nicaragua 
    42  8) Bolivia                        35) Panama 
    43  9) Bonaire Sint Eustatius & Saba  36) Paraguay 
    44 10) Brazil                         37) Peru 
    45 11) Canada                         38) Puerto Rico 
    46 12) Cayman Islands                 39) Sint Maarten 
    47 13) Chile                          40) St Barthelemy 
    48 14) Colombia                       41) St Kitts & Nevis 
    49 15) Costa Rica                     42) St Lucia 
    50 16) Cuba                           43) St Martin (French part) 
    51 17) Curacao                        44) St Pierre & Miquelon 
    52 18) Dominica                       45) St Vincent 
    53 19) Dominican Republic             46) Suriname 
    54 20) Ecuador                        47) Trinidad & Tobago 
    55 21) El Salvador                    48) Turks & Caicos Is 
    56 22) French Guiana                  49) United States 
    57 23) Greenland                      50) Uruguay 
    58 24) Grenada                        51) Venezuela 
    59 25) Guadeloupe                     52) Virgin Islands (UK) 
    60 26) Guatemala                      53) Virgin Islands (US) 
    61 27) Guyana 
    62 #?  
     22#!sh 
     23$ TIMEZONE='America/Los_Angeles' 
     24$ sudo cp --remove-destination /usr/share/zoneinfo/$TIMEZONE /etc/localtime 
    6325}}} 
    6426 
    65 続いて国名の選択肢が表示されました。ここでは、United States を選択しますので 49 と入力して Enter キーを押します。 
     27これにより、date コマンドにより時刻を表示した際に最後にアメリカ合衆国の太平洋時間を表す PDT が表示されます。 
    6628 
    6729{{{ 
    68 Please select one of the following time zone regions. 
    69  1) Eastern Time 
    70  2) Eastern Time - Michigan - most locations 
    71  3) Eastern Time - Kentucky - Louisville area 
    72  4) Eastern Time - Kentucky - Wayne County 
    73  5) Eastern Time - Indiana - most locations 
    74  6) Eastern Time - Indiana - Daviess, Dubois, Knox & Martin Counties 
    75  7) Eastern Time - Indiana - Pulaski County 
    76  8) Eastern Time - Indiana - Crawford County 
    77  9) Eastern Time - Indiana - Pike County 
    78 10) Eastern Time - Indiana - Switzerland County 
    79 11) Central Time 
    80 12) Central Time - Indiana - Perry County 
    81 13) Central Time - Indiana - Starke County 
    82 14) Central Time - Michigan - Dickinson, Gogebic, Iron & Menominee Counties 
    83 15) Central Time - North Dakota - Oliver County 
    84 16) Central Time - North Dakota - Morton County (except Mandan area) 
    85 17) Central Time - North Dakota - Mercer County 
    86 18) Mountain Time 
    87 19) Mountain Time - south Idaho & east Oregon 
    88 20) Mountain Time - Navajo 
    89 21) Mountain Standard Time - Arizona 
    90 22) Pacific Time 
    91 23) Alaska Time 
    92 24) Alaska Time - Alaska panhandle 
    93 25) Alaska Time - southeast Alaska panhandle 
    94 26) Alaska Time - Alaska panhandle neck 
    95 27) Alaska Time - west Alaska 
    96 28) Aleutian Islands 
    97 29) Metlakatla Time - Annette Island 
    98 30) Hawaii 
    99 #?  
     30#!sh 
     31$ date 
     322013年  8月 31日 土曜日 14:29:00 PDT 
    10033}}} 
    10134 
    102 更に地域の選択肢が表示されました。ここでは、Pacific Time (太平洋時間) を選択しますので 22 と入力して Enter キーを押します。 
     35{{{ 
     36#!Admonition 
     37=== 特定のユーザーのみタイムゾーンを変更したい場合 === 
     38 
     39特定のユーザーのみタイムゾーンを変更したい場合は、ユーザーのホームディレクトリにある .bash_profile などで変数 TZ を設定します。 
    10340 
    10441{{{ 
    105 The following information has been given: 
    106  
    107         United States 
    108         Pacific Time 
    109  
    110 Therefore TZ='America/Los_Angeles' will be used. 
    111 Local time is now:      2013年  8月 30日 金曜日 23:52:07 PDT. 
    112 Universal Time is now:  2013年  8月 31日 土曜日 06:52:07 UTC. 
    113 Is the above information OK? 
    114 1) Yes 
    115 2) No 
    116 #?  
     42#!sh 
     43TZ='America/Los_Angeles' 
    11744}}} 
    118  
     45}}}