keeping track of time

Posted by Shaun Biggs on Thu 09 Oct 2003 08:07 AM — 1 posts, 6,811 views.

USA #0
I'm trying to keep track of the time it takes me to complete a quest. Unfortunately, I don't know how Jscript time functions work, and most tutorial sites have been getting me more confused. I just need a way of storing a time, and then comparing the current time to that stored time. Preferably getting differences in minutes and seconds.

In VBscript, it would be something like:
oldtime = now
minutes = DateDiff ("n", CDate (oldtime), now)

But I'd much rather use Javascript.