比较两个时间服务器之间的时差

时间:2018-07-27 13:48:54

标签: windows powershell datetime batch-file

我正在尝试确定Windows中两个时间服务器之间的时间是否有差异。例如,我有time.windows.com和time.nist.gov。有比较时间差的简单方法吗?

1 个答案:

答案 0 :(得分:1)

在Windows中,您可以将两个时间源与您自己的计算机进行比较,并估算出差异。

w32tm /monitor /computers:time.windows.com,time.nist.gov
time.windows.com[52.179.17.38:123]:
    ICMP: error IP_REQ_TIMED_OUT - no response in 1000ms
    NTP: -0.0528936s offset from local clock
        RefID: utcnist2.colorado.edu [128.138.141.172]
        Stratum: 2
time.nist.gov[132.163.97.1:123]:
    ICMP: error IP_REQ_TIMED_OUT - no response in 1000ms
    NTP: -0.0476330s offset from local clock
        RefID: 'NIST' [0x5453494E]
        Stratum: 1

Warning:
Reverse name resolution is best effort. It may not be
correct since RefID field in time packets differs across
NTP implementations and may not be using IP addresses.

祝你好运!

Shane

相关问题