简体   繁体   中英

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

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?

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM