I’m experimenting/learning with java and json. I’m trying to make my own data for a json parser and I can’t figure out what datatype the example data it gives me is. I think it’s a datetime, but I don’t know how to get my date (regular format) to the json date format. I’m coding the example using PHP.
Jsonp Example Data:
[1110844800000,178.61],
[1110931200000,175.60],
[1111017600000,179.29],
My Date and Data format:
2012-03-01 18:21:31,42
2012-03-01 18:22:31,46
2012-03-02 18:21:31,40
Does anyone know if the 13 digit date/time json above is a datetime specific to java or json? And if so, how to get my data to that format?
Thanks!
It looks like the Javascript version of Unix time, which is really just Unix time in milliseconds rather than seconds.
Divide your 13-digit numbers by 1000 and run them through this site to verify: http://www.onlineconversion.com/unix_time.htm