Real Server Time jQuery Plugin

I’ve released a new jQuery plugin to get the server time.

It waits for the page to be loaded, and send the client machines time to the server by ajax. The server then returns $timedifference.”|”.$offset where offset is the difference in seconds between the server and the local machine.

The script will then check the local machine time every second and apply the offset.

This approach allows us to use the local machine’s time keep capability to keep ourselves accurate.

If there are time zone differences to be taken into account these will also be accounted for.

Click here to check it out:

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Mixx
  • Reddit
  • DZone
  • LinkedIn
  • StumbleUpon
  • TwitThis

One Response to “Real Server Time jQuery Plugin”

  1. Alex says:

    hi, realserver time is amzaing, but how to make it work with Jquery 1.4.x?

Leave a Reply