In the below JSON return on the /cloud API, lastModifiedTs and addedOn are dates. However, I can't find info on the format they're on.
{ "name": xxxxx, "cloudType": xxxxx, "accountType": xxxxx, "enabled": true, "lastModifiedTs": 1551071384318, "lastModifiedBy": xxxxx, "ingestionMode": xxxxx, "groupIds": [ "xxxxx" ], "groups": [ { "id": "xxxxx", "name": "xxxxx" } ], "status": "xxxxx", "accountId": "xxxxx", "addedOn": 1550453562553 },
Anyone have any idea what format the date/times are, or how to format them?
Thanks!
EDIT: after marking solved, I found mention of the TimeMode in the API docs at: https://api.docs.redlock.io/reference#time-range-model
Solved! Go to Solution.
It's in UNIX milliseconds time. Most scripting languages convert using seconds, so you will likely have to divide the timestamp by 1000 then convert.
It's in UNIX milliseconds time. Most scripting languages convert using seconds, so you will likely have to divide the timestamp by 1000 then convert.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!