thinger-io / Arduino-Library

IOTMP Arduino Library for connecting devices to thinger.io #IoT
https://thinger.io
MIT License
111 stars 66 forks source link

Thinger IO response timestamp to Proper time #21

Closed akkigeekdev closed 5 years ago

akkigeekdev commented 5 years ago

I sending request to fetch devices and its details by using following URL

http://{myip}/v1/users/username/devices?authorization={mytoken}

and i get the following response

[
{
"device":"nodemcu", "description":"NodeMCU With ESP8266", "connection":{
"active":true, "ts":1486047553711 } } ]

I want to convert the ts "1486047553711" to proper date time.

Any help

akkigeekdev commented 5 years ago

It worked in javascript

new Date("1486047553711")