Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Closed Thread
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 19th, 2004, 08:48 PM
Registered User
Join Date: Jan 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calculate two times to find out how long they stay

I give students a quiz to take on my site and when the results are sent back to the page it shows score etc but it also shows two times; the time they stated the test and the time they ended the test, is there any way to take those two times and use javascript to calculate how long they took doing the test?
for example:
Here's how the quiz shows the test:
Your Start Time: 2004年1朁E0日 9:31:54
Your End Time: 2004年1朁E0日 9:32:07
It would be nice to show the student that they took 13 seconds doing the test. Is that possible?
But as you see there may be one problem, I'm on a Japanese computer and the times a shown with Japanese characters in it that may then be difficult for Javascript I don't know.
My be there is another way to show the student how long they took, E.G. if I take the time from the server.
But how do I do it?
Here is a demo of the site:
the ID is: demo and password: demo to log in.
When you're there Just click on the most left hand button of the tool bar to begin the test. And forgive me my site is a long way from being finished :)
Best regards,
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate time (minutes) between two times rtr1900 Classic ASP Basics 18 January 2nd, 2008 03:06 PM
Long Long int to bin walid C# 0 January 23rd, 2007 12:47 PM
stay on the new record - don't roll to next Sjackson Access 2 May 25th, 2005 09:25 AM
string to "long long" without using atoll sarraju C++ Programming 2 August 4th, 2004 07:19 AM
Modifying long text in a long field sajsal Classic ASP Databases 1 February 20th, 2004 12:36 PM

All times are GMT -4. The time now is 02:16 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.