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

120
Vistas
Epoch time to seconds from now

Kind of going in circles here. I have an API returning the unix timestamp. I need to convert that in seconds from now to the actual date. For example, if given an epoch time of 1634578318, I need the number of seconds for the difference between now and Monday, October 18, 2021 5:31:58 PM.

No need to format it beyond that. I'm stumbling on a lot of posts and documentation regarding human readable format, but just need the seconds.

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

0

You can simply get the unix time from

moment().unix()

Then substract it from the timestamp of your api call - that's it.

See https://momentjs.com/docs/#/displaying/unix-timestamp/

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