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

286
Views
How to convert solana block time to normal time?

I'm using solana API and as a result of one function I get such response:

{
  blockTime: 1646251782,
  confirmationStatus: 'finalized',
  err: null,
  memo: null,
  signature: 'xyz',
  slot: 123192670
}

As you can see, there is blockTime field, and I want to extract value from it. When I was doing it with moment:

console.log(moment(1646251782).toISOString())

I got 1970 year, but it's incorrect, and I check this on solana explorer, and there was normal time. How can I get normal date or what do I do wrong?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This is unix time in milliseconds, using moment you can extract time using this:

moment.unix(1650493606).format("YYYY-MM-DD HH:mm:ss")
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!