what is the fastest way to get server time in JavaScript from a web browser?

1.9k Views Asked by At

in fact, i wanna synchronize client-side time with server time, this solution is really good, but there are any other ideas faster? in other words, can we find a faster way to get server time in JavaScript from a web browser?

1

There are 1 best solutions below

0
On

Sway - the link you mentioned is the better way to go, i dont think you can anyway sync with server clock without knowing what is the time on the server.

in the below example he has given a good pictorial representation too.

http://codemadesimple.wordpress.com/2012/06/18/timesync-with-asp-net-mvc-4/