Web Service to Get Current UTC Time? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citat开发者_如何学JAVAions.
Closed 7 years ago.
The community reviewed whether to reopen this question 12 months ago and left it closed:
Improve this questionOriginal close reason(s) were not resolved
I'm building a PHP web application and need to know what the current date/time is. I cannot depend on the server's setting. Any web service I can use? I know there will be some delay accessing the time via web service, but I am fine with something that is not accurate to the last millisecond.
Yes, get it from a public NTP server.
Look at a PHP implementation here:
http://www.kloth.net/software/timesrv1.php
精彩评论