daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Mar 19th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. vm.horario_firebase = data.val() + Date.now();
  2.  let tiempo_faltante  = ultima_fecha_vecimiento-vm.horario_firebase ; //obteniendo la deferencia de timestamp
  3.  console.log("ESTE ES EL TIEMPO QUE LE FALTA AL CRONOMETRO, TIMESTAMP");
  4.  console.log(tiempo_faltante);
  5.  let minutos = new Date(tiempo_faltante).getMinutes()*60/60; //De esta forma obtengo el valor del timestamp en minutos
  6.  console.log("MINUTOS INGRESADOS");
  7.  console.log(minutos); // 9 (valor de ejemplo, devuelve un entero)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top