Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个非常有限的环境,没有标准的 linux/unix 日期/时间 API,并且必须与NTP服务器同步时钟。我可以通过沟通UDP并得到NTP回复。现在我需要NTP timestamp自己完全转换为设备日期/时间。
NTP
UDP
NTP timestamp
我发现了几个 ntp 实现(qntp, c#, java),但它们都使用系统范围的函数将NTP时间戳转换为相应的 DateTime 实现。
qntp
c#
java
任何关于如何转换的建议或任何我可以阅读有关这种转换的链接将不胜感激。