Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

73
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!