是否有提供 API 的时间服务器,我可以从中获取当前东部时间? [英] Is there a time server that offers an API that i can grab the current eastern time from?

查看:12
本文介绍了是否有提供 API 的时间服务器,我可以从中获取当前东部时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我们的网站上有倒计时,我需要调用 api 来获取当前的东部时间.我有这个 link 这是我需要的时间.有什么方法或任何网络服务可以使用 jquery get 请求返回当前时间.....任何信息都会有所帮助

Ok we have a countdown on our site and I need to do an api call to get the current eastern time. I have this link which is the time I need. Is there any way or any webservice that i can use a jquery get request that returns the current time.....any info would help

推荐答案

http://worldclockapi.com/很有帮助.

试试这个:http://worldclockapi.com/api/json/est/now

并且您可能想要使用 JSONP 版本或某种CORS 代理.

And you may want to use the JSONP version or some sort of CORS proxy.

这篇关于是否有提供 API 的时间服务器,我可以从中获取当前东部时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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