I'm trying to create a simple count up clock function which basically accepts some specific date (the "since date" to count from) and update a div with the count up.
for example: giving the date [15/04/2014 11:00] (while the current date is [15/04/2014 12:13]) should show a countup 01:13:00 which gets update every second.
ive added a code for a start
<html>
<head>
<script src="http://code.jquery.com/jquery-2.0.2.min.js"></script>
</head>
<body>
<script>
function updateClock (sinceDate)
{
...
$("#clock").html(...);
}
$(document).ready(function()
{
setInterval('updateClock()', 1000);
});
</script>
<div id="clock"/>
</body>
</html>