Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/12/2013, 02:05
Avatar de mayazir
mayazir
 
Fecha de Ingreso: mayo-2013
Mensajes: 81
Antigüedad: 11 años
Puntos: 4
No encuentro error

Hola, donde esta mal escrito?
Graciaas

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>El script de fecha y hora actual</title>
</head>

<body>
<p><h1>FECHA Y HORA ACTUAL:</h1></p>
<p>

<script language="JavaScript" type="text/javascript">
now = new Date();
localtime = now.toString();
utctime = now.toGMTString();
document.write("<b>Hora local:</b>" + localtime" <br>);
document.write("<b>Hora UTC:</b>" + utctime");
hours = now.getHours();
mins = now.getMinutes();
secs = now.getSeconds();
document.write("<h1>");
document.write(hours + ":" + mins + ":" + secs);
document.write("</h1>");
</script>


</p>

</body>
</html>