diff --git a/watch/reloj_js.html b/watch/reloj_js.html index 86f2bd1..ef4aaa8 100644 --- a/watch/reloj_js.html +++ b/watch/reloj_js.html @@ -6,9 +6,13 @@ momentoActual = new Date() hora = momentoActual.getHours() minuto = momentoActual.getMinutes() - + segundo = momentoActual.getSeconds() - +//Se Agrego segundo faltataba + str_segundo = new String (segundo) + if (str_segundo.length == 1) + segundo = "0" + segundo + str_minuto = new String (minuto) if (str_minuto.length == 1) minuto = "0" + minuto @@ -34,4 +38,4 @@ - \ No newline at end of file +