.NET API获得确切时间Internet时间服务器 [英] .Net API to get exact time for Internet Time Server

查看:140
本文介绍了.NET API获得确切时间Internet时间服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道是否有任何.NET API的存在是为了从Internet时间服务器获取当前时间,这样更改系统时间在客户端会不会影响我的应用程序的完整性。

I need to know if there is any .NET API exists to fetch the current time from Internet Time Server, so that changing the system time at the client will not affect the integrity of my application.

推荐答案

有是应该保释你出去第三方库。看到的程序NtpClient类

There's a third party library that should bail you out. See the NtpClient class

有关其他的替代品,看到相似主题的这里

For other alternatives, see the similar thread here

这篇关于.NET API获得确切时间Internet时间服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆