Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

World Clock Webservice?

Tags:

web-services

What is the most reliable World Clock Webservice that you use?

like image 779
Daniel Silveira Avatar asked Feb 14 '09 12:02

Daniel Silveira


People also ask

What is World time API?

WorldTimeAPI is a simple web service which returns the current local time for a given timezone as either plain-text or JSON.

How to get timezone using google API?

To learn more, see Set up in Cloud Console. The Time Zone API provides time offset data for locations on the surface of the earth. Request the time zone information for a specific latitude/longitude pair and date. The API returns the name of that time zone, the time offset from UTC, and the daylight savings offset.

How do I find time zones by city?

You could use Google API to search for an address. That returns latitude / logitude. With those values in hand, you can find the closest timezone using e.g. PHP. Or you can use an API like timezoneapi.io (I'm behind that) which enables you to search for an address / city / country.


3 Answers

Unfortunately, you'll probably never get a really accurate atomic clock webservice due to latency issues with the transport of the messages/packets back and forth from your machine to the server.

Most atomic clocks that are accessible over the internet use a specific protocol called the Network Time Protocol that includes a jitter buffer which specifically accounts for and adjusts based upon the latency of the transport. This provides a more accurate representation of the atomic clock's time than using a web-service over HTTP.

I think if you must use a webservice, the most accurate one will be the one hosted on a server that is physically and geographically closest to you and also has the least number of network hops to get from your own machine to the server, since this will reduce the latency of the packets.

like image 154
CraigTP Avatar answered Sep 29 '22 08:09

CraigTP


Understood about latency. With that in mind, I go to NIST's site for US times and World Time Server for the rest. Don't know if either is the "best".

like image 40
duffymo Avatar answered Sep 29 '22 07:09

duffymo


I think due to latency, there is no such thing as a reliable atomic clock webservice.

like image 29
TomHastjarjanto Avatar answered Sep 29 '22 08:09

TomHastjarjanto