Time: hour, minutes, and seconds.
/* To return the GMT time use getUTCHours, getUTCMinutes etc. */
<html>
<body>
<script type="text/javascript">
var d = new Date()
document.write(d.getHours())
document.write(".")
document.write(d.getMinutes())
document.write(".")
document.write(d.getSeconds())
</script>
</body>
</html>
Related examples in the same category