nathanshubert
nathanshubert

Reputation: 41

Wrong UNIX Timestamp From the Meetup API

I'm having a problem with the Meetup API and wondering if anyone has experienced something similar, or would know how to deal with the issue.

There seems to be a problem with the timestamp coming back from my API call. The timestamp I'm getting back is 1320112800000, which converts to Sep. 17th, '02 - 12:00 AM (M. jS, 'y - g:i A). Is there something really obvious I'm missing?

Upvotes: 0

Views: 184

Answers (2)

Jon Newmuis
Jon Newmuis

Reputation: 26540

The timestamp is likely correct. 1320112800000ms is 1320112800 seconds. Using unixtimestamp.com to convert this, it comes to 10/31/11 @9:00:00pm EST.

Upvotes: 2

Marc B
Marc B

Reputation: 360892

Looks like a Javascript timestamp, which is a standard unix timestamp, but in milliseconds. If you lop off 3 zeroes, you'll get

 1320112800 -> Oct 31/2011 20:00:00

Upvotes: 1

Related Questions