I want to set clock of multiple country by JavaScript:
Example :
U.S.A India Australia Spain
10:20:23 15:32:23 19:36:41 15:63:20
I want set this clock live in a page.
I use PHP in My page
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The good thing should be the that one Date object is created per country and it is created once. I’m not exactly sure what the php code should be – either use the time provided by your server and add/subtract time, or check here how to get time from time server.
html:
js:
Jsfiddle demo and live demo with php.