decoding a ios timestamp

I am using iCloud API to get phone location, the API does return a timestamp at which the location is being sampled by does anybody know how to decode a IOS timestamp like 1387034096037 into a unixtimestamp understandable by Vera ?

It’s an epoch time, with a bit more precision than Vera uses.

See
http://www.epochconverter.com

You’ll want to remove some of that precision to use it in Vera, and Lua, but it’s the same as any of Vera’s timestamps otherwise.

amg0

Have a look here: