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.
我的需要:我需要从 Internet 获取当前日期和时间,即 .. 不是从本地系统
如果我更改系统日期和时间,它不应该改变!
如果可能的话更好,可能是任何休息 api 来获取日期。或 java 中的任何其他想法。
我使用了 TimeZone 、 Instant 和许多其他返回系统时间和日期的本地 api。
我需要它在 JAVA 中完成。
我认为 google 已经为开发人员提供了 ntp 时间服务器。
试试这个链接https://developers.google.com/time/