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

Kyl*_*yle 2 windows powershell datetime batch-file

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

Neo*_*ian 6

在 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.
Run Code Online (Sandbox Code Playgroud)

祝你好运!

谢恩