开发者

Web Service to Get Current UTC Time? [closed]

开发者 https://www.devze.com 2023-01-07 23:39 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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:

Original close reason(s) were not resolved

Improve this question

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号