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,431
  • 20
  • 29
2

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

Makyen
  • 29,855
  • 12
  • 76
  • 115
Gaurav Agrawal
  • 4,244
  • 9
  • 39
  • 59
  • 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