<head>
<title>study 004</title>
</head>
<body>
<p>
<script language="JavaScript" type="text/javascript">
now = new Date();
localtime = now.toString();
utctime = now.toGMTString();
document.write("<b>本地時間:</b> " + localtime + "<br>");
document.write("<b>世界時間:</b> " + utctime + "<br>");
hours = now.getHours();
mins = now.getMinutes();
secs = now.getSeconds();
document.write("<h1>");
document.write(hours + "時" + mins + "分" + secs + "秒");
document.write("</h1>");
</script>
</p>
</body>
</html>