From 8e9c3080ee4443ae73604ba44eb2cc4246ebdf62 Mon Sep 17 00:00:00 2001 From: jacqlu <44510165+jacqlu@users.noreply.github.com> Date: Fri, 26 Oct 2018 15:53:12 -0500 Subject: [PATCH] Update reloj_js.html --- watch/reloj_js.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 +