日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

ubuntu设置时区为美国中部时间西六区

發布時間:2023/12/13 综合教程 29 生活家
生活随笔 收集整理的這篇文章主要介紹了 ubuntu设置时区为美国中部时间西六区 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

查看當前ubuntu系統時區

date -R

Fri, 23 Dec 2016 21:42:38 +0800

顯示的是東八區時間及北京時間

然后輸入tzselect 按照提示修改對應時區 本例子修改為美國中部時間 西六區

~$ tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent, ocean, "coord", or "TZ".
 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) coord - I want to use geographical coordinates.
12) TZ - I want to specify the time zone using the Posix TZ format.
#? 2
Please select a country whose clocks agree with yours.
 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) Brazil             36) Paraguay
10) Canada             37) Peru
11) Caribbean Netherlands    38) Puerto Rico
12) Cayman Islands         39) St Barthelemy
13) Chile             40) St Kitts & Nevis
14) Colombia             41) St Lucia
15) Costa Rica             42) St Maarten (Dutch part)
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
#? 10
Please select one of the following time zone regions.
 1) Newfoundland Time, including SE Labrador
 2) Atlantic Time - Nova Scotia (peninsula), PEI
 3) Atlantic Time - Nova Scotia (Cape Breton)
 4) Atlantic Time - New Brunswick
 5) Atlantic Time - Labrador - most locations
 6) Atlantic Standard Time - Quebec - Lower North Shore
 7) Eastern Time - Ontario & Quebec - most locations
 8) Eastern Time - Ontario & Quebec - places that did not observe DST 1967-1973
 9) Eastern Time - Thunder Bay, Ontario
10) Eastern Time - east Nunavut - most locations
11) Eastern Time - Pangnirtung, Nunavut
12) Central Time - Resolute, Nunavut
13) Eastern Standard Time - Atikokan, Ontario and Southampton I, Nunavut
14) Central Time - central Nunavut
15) Central Time - Manitoba & west Ontario
16) Central Time - Rainy River & Fort Frances, Ontario
17) Central Standard Time - Saskatchewan - most locations
18) Central Standard Time - Saskatchewan - midwest
19) Mountain Time - Alberta, east British Columbia & west Saskatchewan
20) Mountain Time - west Nunavut
21) Mountain Time - central Northwest Territories
22) Mountain Time - west Northwest Territories
23) Mountain Standard Time - Creston, British Columbia
24) Mountain Standard Time - Dawson Creek & Fort Saint John, British Columbia
25) Mountain Standard Time - Fort Nelson, British Columbia
26) Pacific Time - west British Columbia
27) Pacific Time - south Yukon
28) Pacific Time - north Yukon
#? 17

The following information has been given:

    Canada
    Central Standard Time - Saskatchewan - most locations

Therefore TZ='America/Regina' will be used.
Local time is now:    Fri Dec 23 07:43:05 CST 2016.
Universal Time is now:    Fri Dec 23 13:43:05 UTC 2016.
Is the above information OK?
1) Yes
2) No
#? 1

You can make this change permanent for yourself by appending the line
    TZ='America/Regina'; export TZ
to the file '.profile' in your home directory; then log out and log in again.

Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
America/Regina
mag-sit@mag-sit:~$ sudo cp /usr/share/zoneinfo/America/Regina /etc/localtime 
[sudo] password for mag-sit: 
mag-sit@mag-sit:~$ date
Fri Dec 23 07:44:57 CST 2016
mag-sit@mag-sit:~$ date -R
Fri, 23 Dec 2016 07:45:02 -0600

總結

以上是生活随笔為你收集整理的ubuntu设置时区为美国中部时间西六区的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。