I’m looking to do the following
timestamp1 = Time.now?
timestamp2 = lastSave --- My func would be setting this
if (compare (timestamp1 to timestamp2) > 5 seconds
Any ideas on how to do this with JS? Thanks
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.
Are you looking for getting the time?
You can try this in Firebug’s console in Firefox:
the last one is the number of seconds.