linux TZ格式
man tzset可以很清楚了解时区设置格式,共3种:
The first format is used when there is no daylight saving time in the local timezone:
std offset
The second format is used when there is daylight saving time:
std offset dst [offset],start[/time],end[/time]
The third format specifies that the timezone information should be read from a file:
:[filespec]
常用是前两种格式。
The std string specifies the name of the timezone and must be three or more alphabetic characters.
The offset string immediately follows std and specifies the time value to be added to the local time to get Coordinated Universal Time (UTC).
The offset is positive if the local timezone is west of the Prime Meridian and negative if it is east. The hour must be between 0 and 24, and the minutes and seconds 0 and 59.
std offset没有夏令时的时区格式,即一个名称加上与UTC的时间差值,就是说,当地时间加上时间差就得到UTC时间。如果时间差为正数,则时区位于本初子午线 (Prime Meridian)之西(西几区),如果是负数,则时区位于本初子午线之东(东几区),见加粗部分字体。所以CST6CDT是西六区的时区名称。——因为 西六区加上6小时,正是UTC时间。而CST-8是东八区,因为东八区减去8小时刚好是UTC时间。
POSIX格式的时区介绍:http://www.ibm.com/developerworks/aix/library/au-aix-posix/index.html
GNU关于TZ变量的介绍:http://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html
世界时区介绍、简写等:http://www.timeanddate.com/time/zones/
参考:
最新文章
- CoolPlist 帧动画自动生成工具
- 配置maven
- Glacierskating测试记录
- hibernate----1-N--jointable(人与地址)
- substr — 详解
- Windows Server 2008 R2 辅域控制器如何升级成主域控制器
- get与post
- [Jquery]tab页面切换效果
- HTTP协议介绍(SERVLET)
- 《第一行代码》学习笔记38-服务Service(5)
- namenode ha
- Omi教程-插件体系
- android学习SeekBar的使用
- 2025战略,中秋送福利!免费开源ERP Odoo Windows 一键傻瓜式安装版发布
- JAVA:简单添加菜单界面(swing)
- python使用dns轮循检测web服务器是否异常
- systemd的电源管理
- 如何进入docker容器
- responsebody和requestbody的使用
- python的匿名函数 lambda的使用方法详解以及使用案例