7

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?

Thanks.. :)

yusufabdulloh
  • 183
  • 2
  • 7

2 Answers2

12

take a look at http://www.timeapi.org/utc/now a simple ajax call to it should return the current time.

Last Rose Studios
  • 2,461
  • 20
  • 30
2

I think this would be helpful for you: http://time.gov/aboutB.html

Makyen
  • 31,849
  • 12
  • 86
  • 121
Gaurav Agrawal
  • 4,355
  • 10
  • 42
  • 61
  • I'm having trouble finding the actual webservice address from that page. Is it https://www.time.gov/actualtime.cgi or something else? – Dave Stucki Oct 15 '18 at 22:03