2
I'm fetching my active credits in BFX and trying to discover when I'll have my funding back. This is a response example:
/v1/credits
[{
amount: "294.4316181",
currency: "USD",
id: 15778083,
period: 2,
rate: "16.816",
status: "ACTIVE",
timestamp: "1454846632.0"
}, ...
]
But new Date(1454846632.0) returns a very old date, what makes me think this timestamp isn't there to be converted into a real date at all.
I am doing something wrong? How can I discover the remaining time of a credit I provided?
1This is kind of off-topic, as converting timestamps is more of a regular programming question than a cryptocurrency specific issue. However, the question is well-written, got an answer quickly, and might be of use to others, so I'll not vote to close. – Murch – 2016-02-11T10:28:20.907