运维联盟俱乐部

 找回密码
 立即注册
查看: 1992|回复: 0

ubuntu-tzselect

[复制链接]
  • TA的每日心情
    开心
    2023-8-9 11:05
  • 发表于 2023-4-27 13:03:17 | 显示全部楼层 |阅读模式
    zhyu@zhyuvm1:~$ tzselect
    Please identify a location so that time zone rules can be set correctly.
    Please select a continent, ocean, "coord", or "TZ".
    1) Africa                                                             5) Atlantic Ocean                                                         9) Pacific Ocean
    2) Americas                                                             6) Australia                                                        10) coord - I want to use geographical coordinates.
    3) Antarctica                                                             7) Europe                                                                11) TZ - I want to specify the timezone using the Posix TZ format.
    4) Asia                                                                     8) Indian Ocean
    #? 4
    Please select a country whose clocks agree with yours.
    1) Afghanistan                      9) Cambodia                  17) Hong Kong                       25) Kazakhstan                    33) Malaysia                 41) Qatar                      49) Taiwan
    2) Antarctica                     10) China                          18) India                       26) Korea (North)            34) Mongolia                 42) Russia                      50) Tajikistan
    3) Armenia                     11) Christmas Island          19) Indonesia                       27) Korea (South)            35) Myanmar (Burma)                 43) Réunion                      51) Thailand
    4) Azerbaijan                     12) Cocos (Keeling) Islands  20) Iran                       28) Kuwait                    36) Nepal                         44) Saudi Arabia              52) Turkmenistan
    5) Bahrain                     13) Cyprus                          21) Iraq                       29) Kyrgyzstan                    37) Oman                         45) Seychelles                      53) United Arab Emirates
    6) Bangladesh                     14) East Timor                  22) Israel                       30) Laos                            38) Pakistan                 46) Singapore                      54) Uzbekistan
    7) Bhutan                     15) French S. Terr.          23) Japan                       31) Lebanon                    39) Palestine                 47) Sri Lanka                      55) Vietnam
    8) Brunei                     16) Georgia                  24) Jordan                       32) Macau                    40) Philippines                 48) Syria                      56) Yemen
    #? 10
    Please select one of the following timezones.
    1) Beijing Time
    2) Xinjiang Time, Vostok
    #? 1

    The following information has been given:

            China
            Beijing Time

    Therefore TZ='Asia/Shanghai' will be used.
    Selected time is now:        Thu Apr 27 13:01:47 CST 2023.
    Universal Time is now:        Thu Apr 27 05:01:47 UTC 2023.
    Is the above information OK?
    1) Yes
    2) No
    #? 1

    You can make this change permanent for yourself by appending the line
            TZ='Asia/Shanghai'; 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:
    Asia/Shanghai


    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    运维联盟俱乐部 ( 冀ICP备19036648号 )

    GMT+8, 2024-5-4 16:50 , Processed in 0.051194 second(s), 21 queries , Gzip On.

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表