Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1852|回复: 1

deepin时区设置

[复制链接]

697

主题

1142

帖子

4086

积分

认证用户组

Rank: 5Rank: 5

积分
4086
发表于 2017-7-24 15:16:37 | 显示全部楼层 |阅读模式

安装完默认配置:
$timedatectl status
      Local time: 一 2017-07-24 15:02:43 UTC
  Universal time: 一 2017-07-24 15:02:43 UTC
        RTC time: 一 2017-07-24 15:02:50
       Time zone: Etc/UTC (UTC, +0000)
Network time on: no
NTP synchronized: no
RTC in local TZ: yes


修改到上海后

timedatectl status
      Local time: 一 2017-07-24 23:10:15 CST
  Universal time: 一 2017-07-24 15:10:15 UTC
        RTC time: 一 2017-07-24 23:10:14
       Time zone: Asia/Shanghai (CST, +0800)
Network time on: no
NTP synchronized: no
RTC in local TZ: yes

Warning: The system is configured to read the RTC time in the local time zone.
         This mode can not be fully supported. It will create various problems
         with time zone changes and daylight saving time adjustments. The RTC
         time is never updated, it relies on external facilities to maintain it.
         If at all possible, use RTC in UTC by calling
         'timedatectl set-local-rtc 0'.


timedatectl set-local-rtc 0

$ timedatectl status
      Local time: 一 2017-07-24 23:14:38 CST
  Universal time: 一 2017-07-24 15:14:38 UTC
        RTC time: 一 2017-07-24 15:14:38
       Time zone: Asia/Shanghai (CST, +0800)
Network time on: no
NTP synchronized: no
RTC in local TZ: no





整个地球分为二十四时区,每个时区都有自己的本地时间。在国际无线电通信场合,为了统一起见,使用一个统一的时间,称为通用协调时(UTC, Universal Time Coordinated)。UTC与格林尼治平均时(GMT, Greenwich Mean Time)一样,都与英国伦敦的本地时相同。在本文中,UTC与GMT含义完全相同。

北京时区是东八区,领先UTC八个小时,在电子邮件信头的Date域记为+0800。如果在电子邮件的信头中有这么一行:

Date: Fri, 08 Nov 2002 09:42:22 +0800

说明信件的发送地的地方时间是二○○二年十一月八号,星期五,早上九点四十二分(二十二秒),这个地方的本地时领先UTC八个小时(+0800, 就是东八区时间)。电子邮件信头的Date域使用二十四小时的时钟,而不使用AM和PM来标记上下午。

以这个电子邮件的发送时间为例,如果要把这个时间转化为UTC,可以使用一下公式:

UTC + 时区差 = 本地时间

时区差东为正,西为负。在此,把东八区时区差记为 +0800,

UTC + (+0800) = 本地(北京)时间

那么,UTC = 本地时间(北京时间))- 0800





回复

使用道具 举报

1214

主题

1975

帖子

7486

积分

认证用户组

Rank: 5Rank: 5

积分
7486
发表于 2018-8-12 12:00:37 | 显示全部楼层
IMG_20180515_112823.jpg
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-3-29 18:55 , Processed in 0.064945 second(s), 22 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表