HITMAN 17 Posted October 26, 2011 Share Posted October 26, 2011 Hey there im after a clock with live seconds which goes along with the server time Quote Link to comment Share on other sites More sharing options...
Spudinski Posted October 27, 2011 Share Posted October 27, 2011 (edited) Javascript. Have PHP send a variable to JS, that holds the current time. Simply update the time by incrementing seconds. Ps. Unix timestamps are the best to work with, as it's displayed in seconds already. JS includes the functionality to convert to readable date/time. Edited October 27, 2011 by Spudinski Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted October 27, 2011 Share Posted October 27, 2011 There is a great website which will help you with this... http://www.google.com Quote Link to comment Share on other sites More sharing options...
Spudinski Posted October 27, 2011 Share Posted October 27, 2011 There is a great website which will help you with this... http://www.google.com Excuse me if I'm wrong, but isn't this a development discussion forum? Where people help and/or sometimes assist other fellow developers to achieve the results desired of an OP? If technical discussions weren't needed, then why doesn't all forums like this just simply redirect to Google? Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted October 27, 2011 Author Share Posted October 27, 2011 exactly :) any chance you could do me a code sudinski as i cant seem to find a code mate Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted October 27, 2011 Share Posted October 27, 2011 Its already been done and I mean a lot. So why do it again? Not exactly cutting edge or even close when you look at it development wise is it. People dont even bother to look they just post can someone do this for me as I .... 1. Cannot be bothered to look 2. Cannot be bothered to try myself as that would involve learning Quote Link to comment Share on other sites More sharing options...
gurpreet Posted October 27, 2011 Share Posted October 27, 2011 http://lmgtfy.com/?q=javascript+time Or even http://lmgtfy.com/?q=javascript+clock Quote Link to comment Share on other sites More sharing options...
Pitch Black Posted October 27, 2011 Share Posted October 27, 2011 As Spudinski already said... Excuse me if I'm wrong, but isn't this a development discussion forum? Where people help and/or sometimes assist other fellow developers to achieve the results desired of an OP? If technical discussions weren't needed, then why doesn't all forums like this just simply redirect to Google? @Hitman: Try and look up the functions that Spudinski posted in his original reply. If you have trouble after trying to piece it together yourself, post your attempt and well try to guide you further. Quote Link to comment Share on other sites More sharing options...
Nickson Posted October 28, 2011 Share Posted October 28, 2011 Spundinski is right, but so is rulerofzu. These forums are here to help out users when they are stuck, or to discuss certain situations and what not else. But these forums aren't here for "I need this, can you do it for me while I absolutely do no effort on my part at all." If you need something done that is not really specific to anything, like what has been requested here, a simple google search will result in 100s of results that just need a copy and paste basically... Sure you can ask questions, and you'll get an answer like Spudinski has done here, but with that information you should be able to get somewhere. If you're unsure, ask some more information and show what you're trying to do, but the quote: exactly any chance you could do me a code sudinski as i cant seem to find a code mate doesn't really belong here... Quote Link to comment Share on other sites More sharing options...
Dominion Posted October 28, 2011 Share Posted October 28, 2011 This thread may help a little - http://makewebgames.io/showthread.php/37332-JS-time 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.