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

177
Views
Which time stamp format is this 1651928421543667000

I'm using an API and it returns timestamp as 1651928421543667000, I can't find the supported format I have tried using

strtotime()
datetime() 
strftime()

in PHP any help? Thanks!

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

0

It's a timestamp in nanoseconds. Devs need ns precision for some low-level tasks with I/O, RAM, radio signals and etc. You can get the same value in PHP by using a command such as echo system('date +%s%N');. You can also convert ns into ms or s by using basics of metric system where nano indicates 10^-9.

about 4 years ago · Juan Pablo Isaza Report

0

So the output is a UNIX-Timestamp format. If you want to convert it to a regular datetime format, use the following code. However, you have to convert it to seconds first by dividing the time by 10^9 as @mardubbles pointed out.

$time = time();    
date("d F Y H:i:s", $time);
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!