I need some help with Blockchain API timestamps. The timestamps from the JSON responses are not user readable. I need to parse this to a readable format to run some logical function based on time.
The timestamp looks something like this:
"time": 1331300839,
I tried to do something like this:
var test = new Date(1331300839);
test.getFullYear();
This is not working. How can I convert the timestamp to a readable format?