Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6846415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:37:10+00:00 2026-05-27T00:37:10+00:00

The api we use generates a set of time stamps for us – We

  • 0

The api we use generates a set of time stamps for us – We have tried to turn these into the proper values but no matter what we try it is just coming back as around 24-04-1937, 10:53:52 which would be good .. except it was only generated around 5 days ago

The time stamps we have to work off are in the format : 1.321818372E+12

The API developer had posted this section to help someone else with the same issue but for some reason it doesnt seem to be working for us we have tried to change a few variables on the test server but the date just keeps going further back in time

$achname = $achievements[0]['name'];
$achtime = substr($achievements[0]['timestamp'], 0, -3);
$format = '%d-%m-%Y, %H:%M:%S';
$strf = strftime($format, $achtime);

Im just not too sure as to what is wrong with it

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:37:11+00:00Added an answer on May 27, 2026 at 12:37 am

    What you’re looking at is a JS timestamp, it’s in milliseconds. Just divide it by 1000 to get the UNIX timestamp.

    $timestamp = $achievements[0]['timestamp'] / 1000;
    echo date('d-m-Y', $timestamp);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VS2008 C++ program where I'm wrapping a C API for use
I'd like to use an API to parse US Postal addresses input into an
We are using Google maps API V3 and we have a set of boundries
I'm learning to use NHibernate validator and it's Fluent API (Loquacious). I have noticed
I want to have my API controller use SSL, so I added another listen
i have these models: public class Student { public int Id { get; set;
Am using phil sturgeon codeigniter REST library for my REST api, i have set
the context i use Spooler Events API to capture events generated by the spooler
Which is the best API to use when accessing a WebCam in .Net? (I
I use an API that expects a SQL string. I take a user input,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.