linux timezone文件
现linux上运行大型APP程序,该app中有自带的表征timezone的.xml文件,现在想把APP设置的timezone设定传递给linux的timezone,让linux的timezone跟随我app的设置变化,该如何操作呢,提个思路也好 man timezoneFILES
/etc/localtime
The system timezone file.
/usr/share/zoneinfo/
The system timezone database directory.
/usr/share/zoneinfo/posixrules
When a TZ string includes a dst timezone without anything following it, then this file is used for the start/end rules.Itisinthetzfile(5)
format.By default, the zoneinfo Makefile hard links it to the America/New_York tzfile.
Above are the current standard file locations, but they are configurable when glibc is compiled.
系统启动后,解析你App的配置文件,取出 TZ 类型: 然后找 /usr/share/zoneinfo 下对应的文件替换 /etc/localtime
页:
[1]