自学内容网 自学内容网

RHCE---第二章:时间服务器

第二章:时间服务器

服务:是运行在操作系统后台的一个或多个程序,为用户或系统提供某项特定的服务。服务配置最多的是网络服务,网络服务通常就是为其他用户,其他计算机提供某项功能服务。

简介

重要性

  • 由于IT系统中,准确的计时非常重要,有很多种原因需要准确计时:
    • 在网络传输中,数据包括和日志需要准确的时间戳
    • 各种应用程序中,如订单信息,交易信息等 都需要准确的时间戳

Linux的两个时钟

  • 硬件时钟RTC (Real Time Clock):即BIOS时钟,也就是我们主板中用电池供电的时钟,是将时间写入到BIOS中,系统断电后时间不会丢失,可以在开机时通过主板程序中进行设置
# 查看硬件时间
[root@localhost ~]# hwclock 
2024-10-17 15:06:15.995309+08:00
  • 系统时钟 (System Clock) :顾名思义也就是Linux系统内核时钟、软件时钟,是由Linux内核来提供的,系统时钟是基于内存,如果系统断电时间就会丢失**
[root@localhost ~]# date
Sat Nov 12 12:15:30 PM CST 2022

[root@localhost ~]# date -s 12:00      # 修改错误时间
Sat Nov 12 12:00:00 PM CST 2022
[root@localhost ~]# hwclock -s         # 向硬件时间同步
[root@localhost ~]# date
Thu Oct 17 03:07:25 PM CST 2024
date命令设置
[root@localhost ~]# date          #显示系统当前时间
Thu Oct 17 03:01:09 PM CST 2024
[root@localhost ~]# date +"%Y-%m-%d %H:%M:%S"  # 格式显示

#设置(修改)时间
[root@localhost ~]# date -s 2022-11-12         #修改年月日
Sat Nov 12 12:00:00 AM CST 2022
[root@localhost ~]# date -s 12:12:12           #修改时分秒
Sat Nov 12 12:12:12 PM CST 2022
[root@localhost ~]# date +%F                   # 显示年月日
2024-10-18 
[root@localhost ~]# date +%T                   # 显示时分秒
15:31:53 
[root@localhost ~]# touch file$(date +%T)
[root@localhost ~]# ll
total 12
-rw-------. 1 root root 832 Oct 12 18:32 anaconda-ks.cfg
-rw-------. 1 root root 855 Oct 16 18:53 dead.letter
drwxr-xr-x. 2 root root   6 Oct 12 19:15 Desktop
drwxr-xr-x. 2 root root   6 Oct 12 19:15 Documents
drwxr-xr-x. 2 root root   6 Oct 12 19:15 Downloads
-rw-r--r--. 1 root root 172 Oct 16 14:52 email.txt
-rw-r--r--. 1 root root   0 Oct 18 15:32 file15:32:43
drwxr-xr-x. 2 root root   6 Oct 12 19:15 Music
drwxr-xr-x. 2 root root   6 Oct 12 19:15 Pictures
drwxr-xr-x. 2 root root   6 Oct 12 19:15 Public
drwxr-xr-x. 2 root root   6 Oct 12 19:15 Templates
drwxr-xr-x. 2 root root   6 Oct 12 19:15 Videos
  • 注意:以便于以后的实验正常执行,可恢复快照后继续

通过man命令:man date 查看date的命令手册。

date参数
   -d, --date=STRING
              display time described by STRING, not 'now'

       --debug
              annotate  the  parsed  date,  and warn about questionable usage to
              stderr

       -f, --file=DATEFILE
              like --date; once for each line of DATEFILE

       -I[FMT], --iso-8601[=FMT]
              output date/time in ISO 8601 format.   FMT='date'  for  date  only
              (the default), 'hours', 'minutes', 'seconds', or 'ns' for date and
              time     to      the      indicated      precision.       Example:
              2006-08-14T02:34:56-06:00

       -R, --rfc-email
              output  date  and  time  in RFC 5322 format.  Example: Mon, 14 Aug
              2006 02:34:56 -0600

       --rfc-3339=FMT
              output date/time in RFC 3339 format.   FMT='date',  'seconds',  or
              'ns'  for  date  and  time  to  the indicated precision.  Example:
              2006-08-14 02:34:56-06:00

       -r, --reference=FILE
              display the last modification time of FILE

       -s, --set=STRING
              set time described by STRING

       -u, --utc, --universal
              print or set Coordinated Universal Time (UTC)
date的格式
       %a     locale's abbreviated weekday name (e.g., Sun)

       %A     locale's full weekday name (e.g., Sunday)

       %b     locale's abbreviated month name (e.g., Jan)

       %B     locale's full month name (e.g., January)

       %c     locale's date and time (e.g., Thu Mar  3 23:05:25 2005)

       %C     century; like %Y, except omit last two digits (e.g., 20)

       %d     day of month (e.g., 01)

       %D     date; same as %m/%d/%y

       %e     day of month, space padded; same as %_d

       %F     full date; like %+4Y-%m-%d

       %g     last two digits of year of ISO week number (see %G)

       %G     year of ISO week number (see %V); normally useful only with %V

       %h     same as %b

       %H     hour (00..23)

       %I     hour (01..12)

       %j     day of year (001..366)

设置日期时间

timedatectl命令设置
# [root@server ~]# timedatectl  # 显示当前的日期和时间
   Local time: Fri 2024-10-18 14:04:26 CST       # 本地时间
           Universal time: Fri 2024-10-18 06:04:26 UTC   # 世界时间
                 RTC time: Fri 2024-10-18 06:04:26      # 硬件时间
                Time zone: Asia/Shanghai (CST, +0800)   # 时区
System clock synchronized: yes                          # 时间是否已同步
              NTP service: active                       # 时间同步服务已启动
          RTC in local TZ: no # no表示硬件时钟设置为协调世界时(UTC),yes表示硬件时钟设置为本地时间

[root@server ~]# systemctl status chronyd  # 查看时间同步服务状态(由于默认使用chrony服务同步时间,不再使用ntp服务)
[root@server ~]# timedatectl set-ntp no  # 关闭时间同步,以方便修改日期时间
[root@server ~]# systemctl status chronyd
[root@server ~]# timedatectl set-time "2023-12-12"  # 设置新日期
[root@server ~]# timedatectl set-time "12:12:12"
[root@server ~]# timedatectl
               Local time: 二 2023-12-12 12:12:22 CST
           Universal time: 二 2023-12-12 04:12:22 UTC
                 RTC time: 二 2023-12-12 04:12:23
                Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: no
              NTP service: inactive
          RTC in local TZ: no
[root@server ~]# timedatectl list-timezones | grep Asia # 查看可用时区
[root@server ~]# timedatectl set-timezone Asia/Shanghai  # 设置时区

NTP

  • NTP:(Network Time Protocol,网络时间协议)是由RFC 1305定义的时间同步协议,用来在分布式时间服务器和客户端之间进行时间同步。
  • NTP基于UDP报文进行传输,使用的UDP端口号为123
  • NTP可以对网络内所有具有时钟的设备进行时钟同步,使网络内所有设备的时钟保持一致,从而使设备能够提供基于统一时间的多种应用,对于运行NTP的本地系统,既可以接受来自其他时钟源的同步,又可以作为时钟源同步其他的时钟,并且可以和其他设备互相同步。
  • NTP的其精度在局域网内可达0.1ms,在互联网上绝大多数的地方其精度可以达到1-50ms

Chrony介绍

  • chrony是一个开源的自由软件,它能帮助你保持系统时钟与时钟服务器(NTP)同步,因此让你的时间保持精确。
  • chrony由两个程序组成,分别是chronyd和chronyc
    • chronyd:是一个后台运行的守护进程,用于调整内核中运行的系统时钟和时钟服务器同步。它确定计算机增减时间的比率,并对此进行补偿。
    • chronyc:提供了一个用户界面,用于监控性能并进行多样化的配置。它可以在chronyd实例控制的计算机上工作,也可以在一台不同的远程计算机上工作
  • 注意:Chrony与NTP都是时间同步软件,两个软件不能够同时开启,会出现时间冲突,RHEL8+中默认使用chrony作为时间服务器,不在支持NTP软件包
[root@server ~]# systemctl status ntp  # 查看ntp状态

安装与配置

安装:

# 默认已安装,若需要安装则可执行:---可以不做

[root@server ~]# yum  install  chrony  -y
[root@server ~]# systemctl start  chronyd
[root@server ~]# systemctl enable  chronyd

Chrony配置文件分析

  • 主配置文件:/etc/chrony.conf
[root@server ~]# vim  /etc/chrony.conf

# 使用 pool.ntp.org 项目中的公共服务器。
# 或者使用server开头的服务器,理论上想添加多少时间服务器都可以
# iburst表示的是首次同步的时候快速同步
pool pool.ntp.org iburst
 
# 根据实际时间计算出服务器增减时间的比率,然后记录到一个文件中,在系统重启后为系统做出最佳时间 补偿调整。 
driftfile /var/lib/chrony/drift 

# 如果系统时钟的偏移量大于1秒,则允许系统时钟在前三次更新中步进。 
# Allow the system clock to be stepped in the first three updates if its offset is larger than 1 second. 
makestep 1.0 3 

# 启用实时时钟(RTC)的内核同步。 
# Enable kernel synchronization of the real-time clock (RTC). 
rtcsync 

# 通过使用 hwtimestamp 指令启用硬件时间戳 
# Enable hardware timestamping on all interfaces that support it. 
#hwtimestamp * 
# Increase the minimum number of selectable sources required to adjust the system clock. 
#minsources 2 

# 指定 NTP 客户端地址,以允许或拒绝连接到扮演时钟服务器的机器 
# Allow NTP client access from local network. 
#allow 192.168.48.0/24

# Serve time even if not synchronized to a time source. 
# local stratum 10 

# 指定包含 NTP 身份验证密钥的文件。 
# Specify file containing keys for NTP authentication. 
# keyfile /etc/chrony.keys 

# 指定日志文件的目录。 
# Specify directory for log files. 
logdir /var/log/chrony   

# 选择日志文件要记录的信息。 
# Select which information is logged. 
# log measurements statistics tracking

同步时间服务器

常用的授时中心
210.72.145.44 国家授时中心 
ntp.aliyun.com 阿里云 
s1a.time.edu.cn 北京邮电大学 
s1b.time.edu.cn 清华大学 
s1c.time.edu.cn 北京大学 
s1d.time.edu.cn 东南大学 
s1e.time.edu.cn 清华大学 
s2a.time.edu.cn 清华大学 
s2b.time.edu.cn 清华大学 
s2c.time.edu.cn 北京邮电大学 
s2d.time.edu.cn 西南地区网络中心 
s2e.time.edu.cn 西北地区网络中心 
s2f.time.edu.cn 东北地区网络中心 
s2g.time.edu.cn 华东南地区网络中心 
s2h.time.edu.cn 四川大学网络管理中心 
s2j.time.edu.cn 大连理工大学网络中心 
s2k.time.edu.cn CERNET桂林主节点 
s2m.time.edu.cn 北京大学 
ntp.sjtu.edu.cn 202.120.2.101 上海交通大学

查看相关的时间矫正文件:

[root@localhost ~]# vim /etc/chrony.conf 

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (https://www.pool.ntp.org/join.html).
# pool 2.rhel.pool.ntp.org iburst           # 默认的时间授时中心
pool ntp.aliyun.com iburst                  # 添加自定义的授时中心

# Use NTP servers from DHCP.
sourcedir /run/chrony-dhcp

# Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift

# Allow the system clock to be stepped in the first three updates
# if its offset is larger than 1 second.
makestep 1.0 3

# Enable kernel synchronization of the real-time clock (RTC).
rtcsync

# Enable hardware timestamping on all interfaces that support it.
#hwtimestamp *

# Increase the minimum number of selectable sources required to adjust
# the system clock.
#minsources 2

# Allow NTP client access from local network.
#allow 192.168.0.0/16
#allow 192.168.235.0/24

# Serve time even if not synchronized to a time source.
#local stratum 10
#local stratum 10

# Require authentication (nts or key option) for all NTP sources.
#authselectmode require

# Specify file containing keys for NTP authentication.
keyfile /etc/chrony.keys

# Save NTS keys and cookies.
ntsdumpdir /var/lib/chrony

# Insert/delete leap seconds by slewing instead of stepping.
#leapsecmode slew

# Get TAI-UTC offset and leap seconds from the system tz database.
leapsectz right/UTC

# Specify directory for log files.
logdir /var/log/chrony

# Select which information is logged.
#log measurements statistics tracking

部分命令补充:

[root@localhost ~]# pstree                   # 树状结构显示程序进程的结构
[root@localhost ~]# #systemctl start(启动)/stop(停止)/restart(重启)/load(加载)/reload(重载)/enable(开机启用)/disable(开机禁用)/status(查看状态)/is-active(判断状态)  chronyd.service 
[root@localhost ~]# systemctl status chronyd         

在这里插入图片描述

扩展配置命令
[root@localhost ~]# vim /etc/anacrontab               ------查看开机自启动文件类型
#period in days   delay in minutes   job-identifier   command
1       5       cron.daily              nice run-parts /etc/cron.daily    ----每天执行的任务文件
7       25      cron.weekly             nice run-parts /etc/cron.weekly   ----每周执行的任务文件
@monthly 45     cron.monthly            nice run-parts /etc/cron.monthly  ----每月执行的任务文件
协议及全称
与Linux系统有关的协议众多,这些协议在网络通信、系统管理、软件开发等多个方面发挥着重要作用。以下是一些常见的与Linux系统有关的协议及其全称和理解:
一、网络通信协议
TCP/IP(Transmission Control Protocol/Internet Protocol)
全称:传输控制协议/因特网协议
理解:TCP/IP是互联网通信的基础协议,它定义了数据如何在网络中传输。TCP负责在数据传输过程中提供可靠的、面向连接的服务,保证数据的完整性和顺序;IP则负责数据包的路由和寻址,将数据包从源主机发送到目标主机。
HTTP(Hypertext Transfer Protocol)
全称:超文本传输协议
理解:HTTP是用于在Web浏览器和Web服务器之间传输数据的协议。它是Web应用程序常用的协议,用于请求和传输HTML页面、图片、视频等资源。
HTTPS(Hypertext Transfer Protocol Secure)
全称:安全超文本传输协议
理解:HTTPS是HTTP的安全版本,它通过使用SSL(安全套接字层)或TLS(传输层安全)协议,对传输的数据进行加密和身份验证,从而提供更安全的数据传输。
SSH(Secure Shell)
全称:安全外壳协议
理解:SSH用于通过加密的方式远程登录到Linux服务器。它提供了加密通信和安全的远程管理功能,使得用户可以在不安全的网络中安全地传输数据。
FTP(File Transfer Protocol)
全称:文件传输协议
理解:FTP用于在客户端和服务器之间传输文件。它支持上传、下载和管理文件,是文件共享和传输的常用协议。
DNS(Domain Name System)
全称:域名系统
理解:DNS是将域名解析为IP地址的系统。它提供了域名与IP地址之间的映射,使得用户可以通过域名访问网站。
SMTP(Simple Mail Transfer Protocol)
全称:简单邮件传输协议
理解:SMTP用于在邮件服务器之间传输电子邮件。它是发送和路由电子邮件的标准协议。
POP3(Post Office Protocol version 3)
全称:邮局协议版本3
理解:POP3用于从邮件服务器上接收电子邮件。它允许用户将邮件从服务器下载到本地设备。
IMAP(Internet Message Access Protocol)
全称:互联网消息访问协议
理解:IMAP与POP3类似,也用于从邮件服务器上接收电子邮件。但IMAP提供更多的功能,如管理邮件夹和远程搜索等。
二、系统管理协议
ICMP(Internet Control Message Protocol)
全称:互联网控制消息协议
理解:ICMP是一种用于传输网络控制和错误报告信息的协议。当网络出现问题时,如路由器或主机不可达,ICMP会向源主机发送一个错误报告。ICMP还支持ping和traceroute等网络诊断工具。
ARP(Address Resolution Protocol)
全称:地址解析协议
理解:ARP是一种将IP地址映射到物理地址(如MAC地址)的协议。当主机需要将数据包发送给同一局域网内的其他主机时,它会使用ARP查询目标主机的物理地址,然后将数据包发送到该地址。
RARP(Reverse Address Resolution Protocol)
全称:逆地址解析协议
理解:RARP是一种将物理地址映射到IP地址的协议。当主机不知道其IP地址时,如启动时或IP地址被篡改时,它会使用RARP请求服务器分配一个IP地址。
IGMP(Internet Group Management Protocol)
全称:互联网组管理协议
理解:IGMP是一种用于实现多播功能的协议。多播允许一个主机同时向多个目标主机发送数据,从而减少网络拥塞。IGMP允许主机加入或离开多播组,以便路由器知道如何将数据包发送给哪些主机。
三、软件开发协议
GPL(GNU General Public License)
全称:GNU通用公共许可证
理解:GPL是一种自由软件许可证,它允许用户自由地运行、研究、分享和修改软件。Linux操作系统的源代码就是基于GPL协议发布的,这使得任何人都可以自由地访问和修改Linux内核的源代码。
综上所述,与Linux系统有关的协议众多,这些协议在网络通信、系统管理、软件开发等多个方面发挥着重要作用。了解这些协议的全称和理解有助于更好地理解和使用Linux系统。

实验

关闭防火墙

[root@Server ~]# systemctl restart chronyd        # 重启服务
[root@Server ~]# systemctl stop firewalld.service     # 关闭防火墙
[root@Server ~]# setenforce 0         # 设置强制状态为0,不会强制执行

注意:systemctl stop firewalld.service和 setenforce 0 这两条命令只在主机开启阶段运行,在主机关机重启后,需要再次运行两条命令进行防火墙的关闭。

查看网络监听信息

[root@Server ~]# netstat -tulnp | grep chronyd
udp        0      0 127.0.0.1:323           0.0.0.0:*                           3083/chronyd        
udp        0      0 0.0.0.0:123             0.0.0.0:*                           3083/chronyd        
udp6       0      0 ::1:323                 :::*                                3083/chronyd  
实验1
  • 同步时间
  • 第一步:先修改成错误时间确认时区CST
[root@server ~]# date  -s  10:30
2023年 05月 30日 星期二 10:30:00 CST
  • 第二步:编制chrony的配置文件
[root@server ~]# vim  /etc/chrony.conf 
# 定位第3行,删除后添加阿里的时间同步服务地址
server   ntp.aliyun.com   iburst

# 注意:也可以先清空chrony.conf内容,将阿里开源提供的时间服务器推荐配置复制粘贴到该文件中
pool ntp.aliyun.com iburst
  • 第三步:重启服务
[root@server ~]# systemctl restart  chronyd
  • 第四步:时间同步
[root@server ~]# date       查看时间

[root@server ~]# chronyc sources -v

  .-- Source mode  '^' = server, '=' = peer, '#' = local clock.
 / .- Source state '*' = current best, '+' = combined, '-' = not combined,
| /             'x' = may be in error, '~' = too variable, '?' = unusable.
||                                                 .- xxxx [ yyyy ] +/- zzzz
||      Reachability register (octal) -.           |  xxxx = adjusted offset,
||      Log2(Polling interval) --.      |          |  yyyy = measured offset,
||                                \     |          |  zzzz = estimated error.
||                                 |    |           \
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^* 192.168.235.131              10   6    77    21    +16us[ +216us] +/-  665us
  • 第五步:查看时间是否同步
[root@server ~]# timedatectl   status
               Local time: 二 2023-05-30 10:24:39 CST
           Universal time: 二 2023-05-30 02:24:39 UTC
                 RTC time: 二 2023-05-30 02:24:40
                Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yes    # yes  表名已同步
              NTP service: active
          RTC in local TZ: no
          
[root@server ~]# date
Fri Oct 18 04:23:29 PM CST 2024        
实验2
  • 搭建本地时间同步服务器

  • 架构

性质IP地址同步对象
服务端server192.168.48.130ntp.aliyun.com
客户端node1192.168.48.131192.168.48.130
  • 要求

    • 服务端server向阿里时间服务器进行时间同步
    • 客户端node1向服务端server进行时间同步
  • 第一步:定位服务端server

# 安装软件
[root@server ~]# yum  install  chrony  -y   # 默认已安装

# 编辑配置文件,定位第3行,修改为阿里的时间服务地址
[root@server ~]# vim  /etc/chrony.conf 
server  ntp.aliyun.com  iburst

# 重启服务
[root@server ~]# systemctl restart chronyd

# 测试
[root@server ~]# chronyc  sources  -v

[root@server ~]# timedatectl  status

# 设置允许客户端时间同步
[root@server ~]# vim  /etc/chrony.conf 
 26 allow 192.168.48.131/24  # 定位第26行,设置谁可以访问本机进行同步
[root@server ~]# systemctl restart chronyd
  • 第二步:定位客户端node1
# 安装软件
[root@node1 ~]# yum  install  chrony  -y    

# 编辑配置文件
[root@node1 ~]# vim  /etc/chrony.conf     # 修改第3行为server的地址
server  192.168.48.130  iburst

# 重启服务
[root@node1 ~]# systemctl restart  chronyd

# 测试
[root@node1 ~]# chronyc  sources  -v

  .-- Source mode  '^' = server, '=' = peer, '#' = local clock.
 / .- Source state '*' = current best, '+' = combined, '-' = not combined,
| /             'x' = may be in error, '~' = too variable, '?' = unusable.
||                                                 .- xxxx [ yyyy ] +/- zzzz
||      Reachability register (octal) -.           |  xxxx = adjusted offset,
||      Log2(Polling interval) --.      |          |  yyyy = measured offset,
||                                \     |          |  zzzz = estimated error.
||                                 |    |           \
MS Name/IP address         Stratum Poll Reach LastRx Last sample           
=========================================================================
^* 192.168.48.130          3   6    17    39    +20us[ +252us] +/-   38ms


[root@node1 ~]# timedatectl   status
               Local time: 二 2023-05-30 11:08:37 CST
           Universal time: 二 2023-05-30 03:08:37 UTC
                 RTC time: 二 2023-05-30 03:08:38
                Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
  • 注意:客户端同步失败的原因
    • 检查网络连通性,需要能ping通
    • 检查服务端的allow参数
    • 需要重启服务
chronyc sources输出分析
  • M:这表示信号源的模式。*^表示服务器,=*表示对等方,#表示本地连接的参考时钟。
  • S:此列指示源的状态
*****chronyd当前同步到的源
+表示可接受的信号源,与选定的信号源组合在一起
-表示被合并算法排除的可接受源
表示已失去连接的源
x表示chronyd认为是虚假行情的时钟(即,其时间与大多数其他来源不一致)
~表示时间似乎具有太多可变性的来源
  • Name/IP address:显示服务器源的名称或IP地址
  • Stratum:表示源的层级,层级1表示本地连接的参考时钟,第2层表示通过第1层级计算机的时钟实现同步,依此类推
  • Poll:表示源轮询频率,以秒为单位,值是基数2的对数,例如值6表示每64秒进行一次测量,chronyd会根据当时的情况自动改变轮询频率
  • Reach:表示源的可达性的锁存值(八进制数值),该锁存值有8位,并在当接收或丢失一次时进行一次更新,值377表示最后八次传输都收到了有效的回复
  • LastRx:表示从源收到最近的一次的时间,通常是几秒钟,字母m,h,d或y分别表示分钟,小时,天或年
  • Last sample:表示本地时钟与上次测量时源的偏移量,方括号左侧的数字表示原始测量值,方括号右侧表示偏差值,*+/-*指示器后面的数字表示测量中的误差范围。正偏移表示本地时钟位于源时钟之前

其它命令

  • 查看时间服务器的状态
[root@server ~]# chronyc  sourcestats  -v
  • 查看时间服务器是否在线
[root@server ~]# chronyc  activity  -v
  • 同步系统时钟
[root@server ~]# chronyc  -a  makestep

常见时区

  • **UTC 整个地球分为二十四时区,每个时区都有自己的本地时间。在国际无线电通信场合,为了统一起见,使用一个统一的时间,称为通用协调时(UTC, Universal Time Coordinated)。
  • GMT 格林威治标准时间 (Greenwich Mean Time)指位于英国伦敦郊区的格林尼治天文台的标准时间,因为本初子午线被定义在通过那里的经线。(UTC与GMT时间基本相同,本文中不做区分)
  • CST 中国标准时间 (China Standard Time)GMT + 8 = UTC + 8 = CST
  • DST夏令时(Daylight Saving Time) 指在夏天太阳升起的比较早时,将时间拨快一小时,以提早日光的使用。(中国不使用)

原文地址:https://blog.csdn.net/m0_75008371/article/details/143058489

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!