Josh Ferrara
Josh Ferrara

Reputation: 767

What type of date/time format is this?

I'm currently attempting to use HighStock charts on my site. I'll be using a PHP file to generate the data for the chart, my only question is what date/time format does HighStock use? Here's an example file they have on their site: http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json

[1107129600000,38.45]

Above is a line of data in the json file where 1107129600000 is the date and 38.45 is the stock price. Hopefully someone will know the date/time type. Thanks.

Upvotes: 7

Views: 3517

Answers (1)

Oleksi
Oleksi

Reputation: 13097

It looks like a UNIX timestamp. It's the number of seconds(or in your case, milliseconds) since January 1 1970. Most programming languages will let you convert this into more natural date/time formats.

Here's a tool to help you convert to see for yourself: http://www.epochconverter.com/

Further reference: http://en.wikipedia.org/wiki/Unix_time

Upvotes: 9

Related Questions