V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
daydaysay
V2EX  ›  问与答

你的时间

  •  
  •   daydaysay · 2018-11-20 20:27:44 +08:00 · 1763 次点击
    这是一个创建于 1987 天前的主题,其中的信息可能已经有所发展或是发生改变。

    http://www.beijing-time.org/ https://www.timeanddate.com/time/zones/cst-china

    电脑时间配了 ntp 同步,检查过了,和 ntp 时间一致,但是与以上两个网站提供的北京时间不一致。 相差有 30s 左右。 谁能解释下?

    第 1 条附言  ·  2018-11-20 21:05:01 +08:00
    sntp -d time.asia.apple.com
    sntp [email protected] Tue Mar 21 14:36:42 UTC 2017 (136.200.1~2533)
    kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod: No such file or directory
    handle_lookup(time.asia.apple.com,0x2)
    move_fd: estimated max descriptors: 4864, initial socket boundary: 20
    sntp sendpkt: Sending packet to 17.253.84.251:123 ...
    Packet sent.
    sock_cb: time.asia.apple.com 17.253.84.251:123
    2018-11-20 21:00:20.551802 (-0800) -27.298728 +/- 18.200235 time.asia.apple.com 17.253.84.251 s1 no-leap
    之前核对时间的时候,我自己搞错了。

    原来这里已经告诉我了,我的本地时间比 ntp 时间快了 27.298728s.

    但是奇怪的就是 mac 系统从来就没有帮我更正本地时间。 - -
    1 条回复    2018-11-20 20:43:13 +08:00
    WordTian
        1
    WordTian  
       2018-11-20 20:43:13 +08:00 via Android
    说明这两个站主机时间有区别呗
    其实像这种 ntp 服务器一般都是取他本机的时间发你的,精度全看他主机里的时间准不准
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2593 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 11:18 · PVG 19:18 · LAX 04:18 · JFK 07:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.