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

123
Views
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 answers
Answer question

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 Report
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!