|
|
[root@ceph1 ~]# tzselect
- \: p* |' f: Q/ M% p- nPlease identify a location so that time zone rules can be set correctly.
% m5 H0 b0 D% j. i4 F9 k* l/ x, zPlease select a continent or ocean." i' g) A7 A8 |
1) Africa8 `* E; C$ L( N1 C% _: Y5 z
2) Americas
' M# G+ @. M3 H: m4 N/ u 3) Antarctica9 @ J8 v5 h9 P$ v* j5 ?2 w1 |, t
4) Arctic Ocean. ^! o1 E- p' P3 w0 h' ]; i5 q
5) Asia- C7 X1 k' U% W$ E* ]& M& E, j
6) Atlantic Ocean) B; y6 {% U. \, B* h$ P' V! D
7) Australia
5 z* U$ {$ _; z8 {0 L* x, i" j/ p 8) Europe
) E1 J6 J; ^% @5 S" m4 R 9) Indian Ocean
. Q- |3 l+ q1 @6 Y7 [7 r7 i; Q' K10) Pacific Ocean
8 q( e0 F. Z1 ?* p1 K11) none - I want to specify the time zone using the Posix TZ format.% v+ B, ^. s* [7 R1 V' I
#? 54 i$ X% _2 h/ l: P7 A7 A
Please select a country.
7 B+ H8 ]5 @" {3 a2 _4 R! Z 1) Afghanistan 18) Israel 35) Palestine
% g0 H& z, W% S/ U$ q 2) Armenia 19) Japan 36) Philippines
& F- B0 E" H" b9 R 3) Azerbaijan 20) Jordan 37) Qatar9 G! `- A7 o, \7 D$ a c& o
4) Bahrain 21) Kazakhstan 38) Russia
- f9 D# ?) |9 o: A. D9 y 5) Bangladesh 22) Korea (North) 39) Saudi Arabia
. }: W- I0 b0 p9 n1 O 6) Bhutan 23) Korea (South) 40) Singapore
* a* `7 h* W7 I) j& \/ v 7) Brunei 24) Kuwait 41) Sri Lanka
+ ~- t" [( t9 {' {* N 8) Cambodia 25) Kyrgyzstan 42) Syria2 D( Y& |3 i5 t
9) China 26) Laos 43) Taiwan! y0 y7 Q; I9 }0 @8 ^) U1 U
10) Cyprus 27) Lebanon 44) Tajikistan
. z; ^* d" ^9 ~+ _11) East Timor 28) Macau 45) Thailand
% M* t5 e) V' ^$ n/ {* G# |12) Georgia 29) Malaysia 46) Turkmenistan' |) K h+ m4 T- v9 K1 g
13) Hong Kong 30) Mongolia 47) United Arab Emirates& r3 R' x, v7 L4 B( c
14) India 31) Myanmar (Burma) 48) Uzbekistan9 T9 ^' T- \7 F
15) Indonesia 32) Nepal 49) Vietnam& k: k b, B- c1 @6 a8 R
16) Iran 33) Oman 50) Yemen5 A4 y$ H; v0 W& v
17) Iraq 34) Pakistan( W# D! s+ R# N0 r$ b3 @9 c
#? 9
! q% m( L9 N/ g+ \ `Please select one of the following time zone regions.
* i/ y6 e) B' ~1) Beijing Time4 E. I; D# S; B( ~3 \. x) q' N
2) Xinjiang Time0 p' a/ A) [0 M: {1 H9 s# P! P! c: d
#? 1
# F1 O4 S2 Z2 a* {+ C; \The following information has been given:
7 s L/ K* M/ q/ X5 I China) {- i3 T" Q% W, Q9 A
Beijing Time- f( w0 }, |3 e' I+ I1 `8 _3 {0 d
Therefore TZ='Asia/Shanghai' will be used.( V" O c! j2 c7 m
Local time is now: Mon Jul 12 08:54:21 CST 2021.
8 _% Y! j" I; ^' H8 c. q' }+ l# B7 fUniversal Time is now: Mon Jul 12 00:54:21 UTC 2021." `" C+ \( h% f1 f
Is the above information OK?" E. f) @* H% S3 j# n8 I
1) Yes8 t# f0 f3 Y- x9 F# ]! d
2) No/ f6 U+ u2 e3 E* j! Q; v
#? 1
' O! C0 @+ ~( S6 w* \# e0 hYou can make this change permanent for yourself by appending the line
3 x6 t: ^, n, \- d9 W+ d TZ='Asia/Shanghai'; export TZ
7 l% c$ t0 g* H" n7 Qto the file '.profile' in your home directory; then log out and log in again.
" O0 M; Y1 K5 H7 Q& uHere is that TZ value again, this time on standard output so that you3 j# ?+ f5 g2 ^5 J+ D5 w: b
can use the /usr/bin/tzselect command in shell scripts:5 W, @9 R" o( C9 b3 W, H' ~. W
Asia/Shanghai
0 V: s4 m9 R: t[root@ceph1 ~]#
) {% y7 Z) H! R8 D/ Q( H! c/ B |
|