Jun 3 2019
12:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 3 2019
12:34 PM
Meraki API responding with strange Timestamps for when getting organizations/<id>/admins
Hi, I'm building a dashboard using Meraki's API for my job, and they want me to have a list of recently logged in/active Meraki Admin accounts. My problem is that I am getting some very weird timestamps in the lastActive field that I am having trouble interpreting, here is an example of one of the responses I am getting:
{"name":"xxxxx","email":"xxxx","id":"xxxx","networks":[],"tags":[],"twoFactorAuthEnabled":xxxx,"lastActive":1559588125,"accountStatus":"xxxx","hasApiKey":xxxxxx,"orgAccess":"xxxxxxxxxx"}
Any help figuring out the format of that timestamp would be much appreciated.
Thanks,
Jansen
Solved! Go to solution.
Labels:
- Labels:
-
Dashboard API
1 Accepted Solution
Jun 3 2019
12:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 3 2019
12:39 PM
4 Replies 4
Jun 3 2019
12:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 3 2019
12:39 PM
Jun 3 2019
12:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 3 2019
12:42 PM
Thanks!
Jun 3 2019
12:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 3 2019
12:52 PM
You can format it using datetime:
>>> tmpDate=datetime.fromtimestamp(<timestamp var>)
>>> tmpdate.strftime("%B %d, %Y - %H:%M:%S%p")
'June 03, 2019 - 14:55:25PM'
Jun 3 2019
1:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 3 2019
1:18 PM
I just needed to know the format, converting it to a C# DateTime was the easy part for me. Thanks though!

Get notified when there are additional replies to this discussion.