title: Get the difference between a server side time and client side time and display it
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5357719/how-to-sync-a-javascript-countdown-with-server-time">How to sync a javascript countdown with server time</a>  </p>
  </blockquote>
  
  
  
  <p>How can I get the to calculate the difference between the server side time and the client side time and then display it in my view , which is a PHP page .</p>
  
  <p>Let me make this a bit clear. I have a time data for a particular cricket match to start which is stored in the database . Now, I want to display the difference between this time and the time in the client browser in my view which is a PHP page. I can understand that I need to write a javascript function for this , but how can I call this function from my PHP code ,and again I have to display the difference in my view. </p>
  
  <p>I am confused about this.</p>