首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >错误的闰秒2015年12月

错误的闰秒2015年12月
EN

Stack Overflow用户
提问于 2016-01-04 13:31:24
回答 1查看 172关注 0票数 0

我发现在2015年12月,我的系统中插入了一个额外的闰秒。

查看/var/log/messages文件,我发现在2015年6月30日插入了一秒,这是正确的,在2015年12月30日插入了另一秒,这是错误的。

我的内核版本和ntp:

内核: 3.0.13-0.27-pae Ntp版本: 4.2.4p8

我如何知道我的系统中当前插入了多少闰秒?我正在使用ntp。

非常感谢,哈维。

EN

回答 1

Stack Overflow用户

发布于 2021-08-13 15:24:15

NTP协议不需要了解历史闰秒。它确实需要提前知道,并且它利用其分组中的跳跃指示符比特来做到这一点。如果错过了闰秒或插入了额外的闰秒,NTP基本上会将它们重新同步。官方的闰秒记录如下(以及“beetween”的官方拼写错误):

代码语言:javascript
运行
复制
"#  Value of TAI-UTC in second valid beetween the initial value until
#  the epoch given on the next line. The last line reads that NO
#  leap second was introduced since the corresponding date 
#  Updated through IERS Bulletin 62 issued in July 2021
#  
#
#  File expires on 28 June 2022
#
#
#    MJD        Date        TAI-UTC (s)
#           day month year
#    ---    --------------   ------   
#
    41317.0    1  1 1972       10
    41499.0    1  7 1972       11
    41683.0    1  1 1973       12
    42048.0    1  1 1974       13
    42413.0    1  1 1975       14
    42778.0    1  1 1976       15
    43144.0    1  1 1977       16
    43509.0    1  1 1978       17
    43874.0    1  1 1979       18
    44239.0    1  1 1980       19
    44786.0    1  7 1981       20
    45151.0    1  7 1982       21
    45516.0    1  7 1983       22
    46247.0    1  7 1985       23
    47161.0    1  1 1988       24
    47892.0    1  1 1990       25
    48257.0    1  1 1991       26
    48804.0    1  7 1992       27
    49169.0    1  7 1993       28
    49534.0    1  7 1994       29
    50083.0    1  1 1996       30
    50630.0    1  7 1997       31
    51179.0    1  1 1999       32
    53736.0    1  1 2006       33
    54832.0    1  1 2009       34
    56109.0    1  7 2012       35
    57204.0    1  7 2015       36
    57754.0    1  1 2017       37"
--https://en.wikipedia.org/wiki/Leap_second
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34585199

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档