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/

参考:

linux下时区的一些认识

最新文章

  1. CoolPlist 帧动画自动生成工具
  2. 配置maven
  3. Glacierskating测试记录
  4. hibernate----1-N--jointable(人与地址)
  5. substr — 详解
  6. Windows Server 2008 R2 辅域控制器如何升级成主域控制器
  7. get与post
  8. [Jquery]tab页面切换效果
  9. HTTP协议介绍(SERVLET)
  10. 《第一行代码》学习笔记38-服务Service(5)
  11. namenode ha
  12. Omi教程-插件体系
  13. android学习SeekBar的使用
  14. 2025战略,中秋送福利!免费开源ERP Odoo Windows 一键傻瓜式安装版发布
  15. JAVA:简单添加菜单界面(swing)
  16. python使用dns轮循检测web服务器是否异常
  17. systemd的电源管理
  18. 如何进入docker容器
  19. responsebody和requestbody的使用
  20. python的匿名函数 lambda的使用方法详解以及使用案例

热门文章

  1. PhantomJS + Selenium webdriver 总结-元素定位
  2. 【笔记】关于require.js 的用法
  3. 转: android sdk for mac
  4. MVC入门教程二[第一个小Demo](转载)
  5. 在xcode5下利用Source Control 做 git 项目管理
  6. docker基本
  7. 【DB2】不同编码格式下的汉字所占字节
  8. 基于easyui fom分组插件
  9. 将object格式转为json格式
  10. 一个表中的字段值用作另一个表的In查询条件