Compute Binance-API timestamp correctly

78
January 01, 2019, at 10:10 PM

I am using the cctx library to get data from the Binance-API.

I get for example the following timestamps back:

ETH/BTC = {array} [20]
 symbol = "ETH/BTC"
 ...
 timestamp = 85361481
 datetime = "1970-01-01T23:42:41.481Z"
 info = {array} [21]
  symbol = "ETHBTC"
  ...
  openTime = 1546187188041
  closeTime = 1546273588041

See below a full picture of my returned data:

I have tried using DateTime() and Date() to get a useful date back. However, I only get back dates such as 1972-09-03, which cannot be correct. Furthermore, the datetime from the array is also not correct.

Any suggestions how to get the correct time back when the price was send out via the api.

Thx for your reply!

READ ALSO
Cannot Assign Key => Value to Foreach Array

Cannot Assign Key => Value to Foreach Array

I have the following array of countries ($countryIso = array("US","BR","CL");) and my idea is to create a new array to display the following schema:

76
Memory efficient way of logging to a database BLOB column long running php script

Memory efficient way of logging to a database BLOB column long running php script

I am logging to a database table after building a large string as a BLOBThe problem I think that is happening is the string is becoming very large as the long runs causing memory issues on the php script

92
Many to many relationships - Moving data from many tables to a single table

Many to many relationships - Moving data from many tables to a single table

I have a table with users and one with labels A label can have many users and a user can have many labels, so a Many to Many relationship A joining table is needed, that's why I have label_user

80
How to fix invalid remote specification while connecting mailbox using imap?

How to fix invalid remote specification while connecting mailbox using imap?

I am trying to open outlook mailbox using imap in php 43

95