任何参考免费上网时间网络服务 [英] Any reference to free internet time web service

查看:114
本文介绍了任何参考免费上网时间网络服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要获取有关我的应用程序的日期和时间的实时信息。 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆