- Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdate_objects.html
More file actions
Latest commit
27 lines (21 loc) · 549 Bytes
/
Copy pathdate_objects.html
File metadata and controls
27 lines (21 loc) · 549 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!doctype>
<htmllang="en">
<head>
<title>JavaScript Tutorial - Date Objects</title>
</head>
<body>
<!-- JAVASCRIPT -->
<scripttype="text/javascript">
functiongetWinners()
{
varcurrentTime=newDate();
varhours=currentTime.getHours();
varminutes=currentTime.getMinutes();
varseconds=currentTime.getSeconds();
console.log('Seahawks Won! Are Champs now! : '+hours+':'+minutes+':'+seconds);
}
setInterval("getWinners()",1000);
</script>
<!-- END JAVASCRIPT -->
</body>
</html>