且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

获得在C#中的实际日期时间,而不是系统日期时间

更新时间:2023-02-26 17:52:30

您可以查询 NTP服务器。 。NTP服务器为您提供当前时间,并允许您非常准确(这是计算机如何同步时钟)

You can query an NTP server. NTP servers provide you with the current time, and allowing you to be very accurate (that's how computers synchronize clocks).

查看示例的here