在 RockyLinux 9.3 中,默认时间格式为 12 小时制,调整为 24 小时制
- 案例一:在 RockyLinux 9.3 中,默认时间格式为 12 小时制,调整为 24 小时制
- 案例二:时间显示英文调整为中文
- endl
案例一:在 RockyLinux 9.3 中,默认时间格式为 12 小时制,调整为 24 小时制
[root@openEuler-14 ~]
Sun May 4 07:55:42 PM CST 2025
[root@openEuler-14 ~]
System Locale: LANG=en_US.UTF-8VC Keymap: usX11 Layout: us
[root@openEuler-14 ~]
[root@openEuler-14 ~]
System Locale: LANG=en_US.UTF-8LC_TIME=C.UTF-8VC Keymap: usX11 Layout: us
[root@openEuler-14 ~]
logout
[root@openEuler-14 ~]
Sun May 4 19:56:42 CST 2025
案例二:时间显示英文调整为中文
[root@ntp-client ~]
Wed May 22 16:24:20 CST 2024
[root@ntp-client ~]
LANG="C.UTF-8"
[root@ntp-client ~]
[root@ntp-client ~]
zh_CN
zh_CN.gb18030
zh_CN.gbk
zh_CN.utf8
[root@ntp-client ~]
[root@ntp-client ~]
LANG=zh_CN.utf8
[root@ntp-client ~]
[root@ntp-client ~]
System Locale: LANG=zh_CN.utf8LC_TIME=zh_CN.UTF-8VC Keymap: cnX11 Layout: cn
[root@ntp-client ~]
logout
[root@ntp-client ~]
2024年 05月 22日 星期三 17:54:32 CST
endl