- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
05-08-2019 09:05 PM - last edited on 09-02-2020 10:15 AM by kwadsack
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
05-08-2019 09:07 PM - last edited on 06-12-2019 05:19 PM by Protagonist
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.
05-08-2019 09:07 PM - last edited on 06-12-2019 05:19 PM by Protagonist
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!