|
|
[root@ceph1 ~]# tzselect : M9 `1 e2 x' q/ ]8 u o( f5 ?
Please identify a location so that time zone rules can be set correctly.
$ ?* F E" J) a z6 ^# Z9 G% N$ ]4 ePlease select a continent or ocean.7 s9 n/ W/ @% `+ j
1) Africa3 E& a" g8 X. a8 W/ T7 V: v9 f6 w( Z
2) Americas0 o# n; J$ h( T+ R* `, J
3) Antarctica$ R4 o( X/ J2 @+ x( v% f5 C
4) Arctic Ocean; _9 G$ I3 u$ s5 K+ }7 l8 q7 M$ l
5) Asia
E# W( f* g8 e& r 6) Atlantic Ocean
$ ~. T% z2 o! Y N3 j 7) Australia
, b. k+ m. w$ z4 E8 Q6 { 8) Europe: C2 [4 O3 d6 }
9) Indian Ocean
" F0 ^* `3 z1 o3 ^: W- q' Z. t9 J10) Pacific Ocean
1 v) {9 K# p9 w8 T- y- @11) none - I want to specify the time zone using the Posix TZ format.& n: E( B% i. R
#? 5
$ k# T/ d+ j- D, |9 M7 X, fPlease select a country.2 z+ Q! U1 V- T2 L# m4 U6 v6 b O+ [& E
1) Afghanistan 18) Israel 35) Palestine* Q/ x A: ^) Q7 D! \0 H
2) Armenia 19) Japan 36) Philippines1 E, V( C4 P( q& W$ l! A1 `4 R
3) Azerbaijan 20) Jordan 37) Qatar
M2 F; R& v. u/ W; [ 4) Bahrain 21) Kazakhstan 38) Russia
' H% k7 m) \8 i* A3 ^ 5) Bangladesh 22) Korea (North) 39) Saudi Arabia
, [* I! I8 f" H 6) Bhutan 23) Korea (South) 40) Singapore
' E# K) P; V0 o* k# |" j 7) Brunei 24) Kuwait 41) Sri Lanka
$ L, Z E& ~7 D- L. V' M1 I 8) Cambodia 25) Kyrgyzstan 42) Syria
: b) d2 t- ^* V- |1 y4 q 9) China 26) Laos 43) Taiwan
; Z1 y- m, W; N# k' ^5 Q10) Cyprus 27) Lebanon 44) Tajikistan' E4 l8 ?3 L$ J/ z3 h, B
11) East Timor 28) Macau 45) Thailand2 J- d0 v! i2 x9 [5 _* U' e
12) Georgia 29) Malaysia 46) Turkmenistan
; a' p G& n- y13) Hong Kong 30) Mongolia 47) United Arab Emirates
4 S3 \' ^& F: b8 D5 a14) India 31) Myanmar (Burma) 48) Uzbekistan5 a! [7 m" W% z* a) @( @
15) Indonesia 32) Nepal 49) Vietnam# _1 I5 X8 k& W4 S3 p6 T) }
16) Iran 33) Oman 50) Yemen
: X) n1 ? f- Q1 \. D17) Iraq 34) Pakistan( o: o6 n Q* U# r. B
#? 9
8 A2 ?, Y, @: V" L7 C& fPlease select one of the following time zone regions.: b# \7 t! a _! ?0 W
1) Beijing Time
" M. K' N+ {+ J2 i- G" s/ m2) Xinjiang Time c9 r3 |' A; P/ ]3 n
#? 1* @. P9 w0 X- c @( S% ^
The following information has been given:
, v! d" U0 s. @3 N- h _ China# Z0 w1 T5 M$ i
Beijing Time+ x! B! ]8 C/ ~: K* V) s. n
Therefore TZ='Asia/Shanghai' will be used.3 Q* R3 O, D/ t6 f
Local time is now: Mon Jul 12 08:54:21 CST 2021.
n" v, B- h% U: Q6 o5 J. aUniversal Time is now: Mon Jul 12 00:54:21 UTC 2021.' x4 Y- P; \0 s# G* \3 x6 _
Is the above information OK?( ^/ M6 \. R# N$ ?9 O q( X
1) Yes& u0 s3 J o- o7 @/ W6 u. H
2) No C6 |! i& S6 ~! n8 [
#? 1- E2 t6 u% }" c+ z) D
You can make this change permanent for yourself by appending the line. d- J( E1 _' z" T3 F0 H) @
TZ='Asia/Shanghai'; export TZ
+ |& K; k% [4 \ tto the file '.profile' in your home directory; then log out and log in again.
' O6 A' C; |2 f9 P5 V. g4 g- C' w/ cHere is that TZ value again, this time on standard output so that you7 U$ u1 w; l Y9 U0 i
can use the /usr/bin/tzselect command in shell scripts:
- g5 T0 N# E- g6 u9 V- ^Asia/Shanghai, p. d0 g' k, ^, Z
[root@ceph1 ~]# & |$ [5 _2 D# o
|
|