Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

186
Vistas
Is there a way to display elapsed time from two timestamps in js?

i'm currently struggling with time operations in js. I'm getting an elapsed time from outside the js app.

Let's say I have the calculation of the elapsed time between two timestamps from another service and i want to display it in my html file.

Is there a way to extract days, hours, minutes and seconds from the elapsed time and generate some kind of a clock that keeps adding seconds continuosly?

Thanks in advance for any help!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I would recommend using something as dayjs for manipulating data with Javascript, it's much easier than the default API.

For the clock behavior you can use setInterval(()=>{},1000) to update it every second

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda