OSWikiHK: 請協力 GPLv3 的中文翻譯工作。
設定時區
OSWikiHK,自由中文開源知識庫
| 標準文章 | |
|---|---|
| 作者: | Roy Chan |
| 協力: | - |
| 校對: | - |
| 分享本文: | |
目录 |
[编辑]
GNOME
右擊頂部面板右上角的日期時間,選『調節日期及時間』(Adjust Time & Date):
輸入密碼:
按『選取時間...』(Select Time Zone):
在地圖上點擊你所在地的時區:
你亦可以在下面『時區』(Time zone)中直接選擇你所在地的時區。
[编辑]
tzconfig
在root用戶打tzconfig:
# tzconfig
Your current time zone is set to Asia/Hong_Kong
Do you want to change that? [n]: y
Please enter the number of the geographic area in which you live:
1) Africa 7) Australia
2) America 8) Europe
3) US time zones 9) Indian Ocean
4) Canada time zones 10) Pacific Ocean
5) Asia 11) Use System V style time zones
6) Atlantic Ocean 12) None of the above
Then you will be shown a list of cities which represent the time zone
in which they are located. You should choose a city in your time zone.
Number: 5
Aden Almaty Amman Anadyr Aqtau Aqtobe Ashgabat Ashkhabad Baghdad Bahrain
Baku Bangkok Beirut Bishkek Brunei Calcutta Choibalsan Chongqing Chungking
Colombo Dacca Damascus Dhaka Dili Dubai Dushanbe Gaza Harbin Hong_Kong
Hovd Irkutsk Istanbul Jakarta Jayapura Jerusalem Kabul Kamchatka Karachi
Kashgar Katmandu Krasnoyarsk Kuala_Lumpur Kuching Kuwait Macao Macau
Magadan Makassar Manila Muscat Nicosia Novosibirsk Omsk Oral Phnom_Penh
Pontianak Pyongyang Qatar Qyzylorda Rangoon Riyadh Riyadh87 Riyadh88
Riyadh89 Saigon Sakhalin Samarkand Seoul Shanghai Singapore Taipei
Tashkent Tbilisi Tehran Tel_Aviv Thimbu Thimphu Tokyo Ujung_Pandang
Ulaanbaatar Ulan_Bator Urumqi Vientiane Vladivostok Yakutsk Yekaterinburg
Yerevan
Please enter the name of one of these cities or zones
You just need to type enough letters to resolve ambiguities
Press Enter to view all of them again
Name: [] Hong
Your default time zone is set to 'Asia/Hong_Kong'.
Local time is now: 五 11月 10 02:48:15 HKT 2006.
Universal Time is now: 四 11月 9 18:48:15 UTC 2006.
#
[编辑]
手動設定
各地的時區資料一般都會被放在目錄/usr/share/zoneinfo或/usr/lib/zoneinfo中。你只需要建立一個symbolic link由/etc/localtime至去/usr/share/zoneinfo/中對應的時區檔就可以了。
ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime
[编辑]












