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

75
Vistas
Matching Java timestamp code to javascript

I have this code which showing sets the timestamp to be in a specific format written in

Java:

timeStamp = System.currentTimeMillis();
writer.write(String.format("%d, %f, %s\n", timeStamp, evt.values[1], otherstr ));

I am using javascript so I need to translate it.

I currently have this:

const timeStamp = + new Date();
console.log(timeStamp);

I can't test the Java one as I don't know Java so I'm asking here.

Would my javascript code match the Java timestamp?

If not, how can I match it in Javascript?

about 4 years ago · Juan Pablo Isaza
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