任何参考免费上网时间网络服务 [英] Any reference to free internet time web service
问题描述
我需要获取有关我的应用程序的日期和时间的实时信息。 FYI,我开发一个电视的应用程序,所以没有可靠的本地机器时间像我们从新的Date()。我使用javascript进行开发。
I need to get real-time information about Date and Time for my application. FYI, i develop an app for a TV, so there's no reliable local-machine time like we got from new Date(). I use javascript for the development.
我的计划是从服务器获取时间。但是我没有这个项目的服务器,所以我无法设置任何服务器端脚本来处理这个。我需要的是一个免费的网络服务,提供日期和时间信息。任何引用?
My plan is to get the time from a server. But I don't have a server for this project, so I can't set any server-side scripting to handle this. All i need is a free web service that provide Date and Time info. Any references?
谢谢..:)
推荐答案
看看 http://www.timeapi.org/utc/now
a简单的ajax调用它应该返回当前时间。
take a look at http://www.timeapi.org/utc/now a simple ajax call to it should return the current time.
这篇关于任何参考免费上网时间网络服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!